@Test public void testOnExpressionEditorDefinitionSelectedWhenNotBound() { popover.onExpressionEditorDefinitionSelected(literalExpressionEditorDefinition); verify(undefinedExpressionGrid, never()).onExpressionTypeChanged(any(ExpressionType.class)); verify(view, never()).hide(); }
@Override public void onExpressionEditorDefinitionSelected(final ExpressionEditorDefinition definition) { binding.ifPresent(b -> { b.onExpressionTypeChanged(definition.getType()); view.hide(); }); }
UndefinedExpressionSelectorPopoverImpl extends AbstractPopoverImpl<UndefinedExpressionSelectorPopoverView, UndefinedExpressionGrid> implements UndefinedExpressionSelectorPopoverView.Presenter { @Override public void onExpressionEditorDefinitionSelected(final ExpressionEditorDefinition definition) { binding.ifPresent(b -> { b.onExpressionTypeChanged(definition.getType()); view.hide(); }); } }
UndefinedExpressionSelectorPopoverImpl extends AbstractPopoverImpl<UndefinedExpressionSelectorPopoverView, UndefinedExpressionGrid> implements UndefinedExpressionSelectorPopoverView.Presenter { @Override public void onExpressionEditorDefinitionSelected(final ExpressionEditorDefinition definition) { binding.ifPresent(b -> { b.onExpressionTypeChanged(definition.getType()); view.hide(); }); } UndefinedExpressionSelectorPopoverImpl(); @Inject  UndefinedExpressionSelectorPopoverImpl(final UndefinedExpressionSelectorPopoverView view,
                                                  final TranslationService translationService,
                                                  final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier); }
UndefinedExpressionSelectorPopoverImpl extends AbstractPopoverImpl<UndefinedExpressionSelectorPopoverView, UndefinedExpressionGrid> implements UndefinedExpressionSelectorPopoverView.Presenter { @Override public void onExpressionEditorDefinitionSelected(final ExpressionEditorDefinition definition) { binding.ifPresent(b -> { b.onExpressionTypeChanged(definition.getType()); view.hide(); }); } UndefinedExpressionSelectorPopoverImpl(); @Inject  UndefinedExpressionSelectorPopoverImpl(final UndefinedExpressionSelectorPopoverView view,
                                                  final TranslationService translationService,
                                                  final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier); @Override void onExpressionEditorDefinitionSelected(final ExpressionEditorDefinition definition); @Override String getPopoverTitle(); }
UndefinedExpressionSelectorPopoverImpl extends AbstractPopoverImpl<UndefinedExpressionSelectorPopoverView, UndefinedExpressionGrid> implements UndefinedExpressionSelectorPopoverView.Presenter { @Override public void onExpressionEditorDefinitionSelected(final ExpressionEditorDefinition definition) { binding.ifPresent(b -> { b.onExpressionTypeChanged(definition.getType()); view.hide(); }); } UndefinedExpressionSelectorPopoverImpl(); @Inject  UndefinedExpressionSelectorPopoverImpl(final UndefinedExpressionSelectorPopoverView view,
                                                  final TranslationService translationService,
                                                  final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier); @Override void onExpressionEditorDefinitionSelected(final ExpressionEditorDefinition definition); @Override String getPopoverTitle();  }