@Test public void testOnExpressionEditorDefinitionSelectedWhenNotBound() { popover.onFunctionKindSelected(kind); verify(hasKindSelectorControl, never()).setFunctionKind(any(FunctionDefinition.Kind.class)); verify(view, never()).hide(); }
@Override public void onFunctionKindSelected(final FunctionDefinition.Kind kind) { binding.ifPresent(b -> { b.setFunctionKind(kind); view.hide(); }); }
KindPopoverImpl extends AbstractPopoverImpl<KindPopoverView, HasKindSelectControl> implements KindPopoverView.Presenter { @Override public void onFunctionKindSelected(final FunctionDefinition.Kind kind) { binding.ifPresent(b -> { b.setFunctionKind(kind); view.hide(); }); } }
KindPopoverImpl extends AbstractPopoverImpl<KindPopoverView, HasKindSelectControl> implements KindPopoverView.Presenter { @Override public void onFunctionKindSelected(final FunctionDefinition.Kind kind) { binding.ifPresent(b -> { b.setFunctionKind(kind); view.hide(); }); } KindPopoverImpl(); @Inject  KindPopoverImpl(final KindPopoverView view,
                           final TranslationService translationService); }
KindPopoverImpl extends AbstractPopoverImpl<KindPopoverView, HasKindSelectControl> implements KindPopoverView.Presenter { @Override public void onFunctionKindSelected(final FunctionDefinition.Kind kind) { binding.ifPresent(b -> { b.setFunctionKind(kind); view.hide(); }); } KindPopoverImpl(); @Inject  KindPopoverImpl(final KindPopoverView view,
                           final TranslationService translationService); @Override String getPopoverTitle(); @Override void onFunctionKindSelected(final FunctionDefinition.Kind kind); }
KindPopoverImpl extends AbstractPopoverImpl<KindPopoverView, HasKindSelectControl> implements KindPopoverView.Presenter { @Override public void onFunctionKindSelected(final FunctionDefinition.Kind kind) { binding.ifPresent(b -> { b.setFunctionKind(kind); view.hide(); }); } KindPopoverImpl(); @Inject  KindPopoverImpl(final KindPopoverView view,
                           final TranslationService translationService); @Override String getPopoverTitle(); @Override void onFunctionKindSelected(final FunctionDefinition.Kind kind);  }