@Test public void testOnCanvasFocusedSelectionEventWhenNotBound() { control.onCanvasFocusedSelectionEvent(event); verifyNoMoreInteractions(editor); }
@SuppressWarnings("unused") public void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event) { session.ifPresent(s -> { if (Objects.equals(s.getCanvasHandler(), event.getCanvasHandler())) { expressionEditor.ifPresent(ExpressionEditorView.Presenter::exit); } }); }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @SuppressWarnings("unused") public void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event) { session.ifPresent(s -> { if (Objects.equals(s.getCanvasHandler(), event.getCanvasHandler())) { expressionEditor.ifPresent(ExpressionEditorView.Presenter::exit); } }); } }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @SuppressWarnings("unused") public void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event) { session.ifPresent(s -> { if (Objects.equals(s.getCanvasHandler(), event.getCanvasHandler())) { expressionEditor.ifPresent(ExpressionEditorView.Presenter::exit); } }); } @Inject  ExpressionEditorControlImpl(final ExpressionEditorView view,
                                       final DecisionNavigatorPresenter decisionNavigator,
                                       final DMNGraphUtils dmnGraphUtils,
                                       final DMNDiagramsSession dmnDiagramsSession,
                                       final Event<CanvasElementUpdatedEvent> canvasElementUpdatedEvent,
                                       final DRDNameChanger drdNameChanger); }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @SuppressWarnings("unused") public void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event) { session.ifPresent(s -> { if (Objects.equals(s.getCanvasHandler(), event.getCanvasHandler())) { expressionEditor.ifPresent(ExpressionEditorView.Presenter::exit); } }); } @Inject  ExpressionEditorControlImpl(final ExpressionEditorView view,
                                       final DecisionNavigatorPresenter decisionNavigator,
                                       final DMNGraphUtils dmnGraphUtils,
                                       final DMNDiagramsSession dmnDiagramsSession,
                                       final Event<CanvasElementUpdatedEvent> canvasElementUpdatedEvent,
                                       final DRDNameChanger drdNameChanger); @Override void bind(final DMNSession session); @Override ExpressionEditorView.Presenter getExpressionEditor(); @SuppressWarnings("unused") void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event); void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event); }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @SuppressWarnings("unused") public void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event) { session.ifPresent(s -> { if (Objects.equals(s.getCanvasHandler(), event.getCanvasHandler())) { expressionEditor.ifPresent(ExpressionEditorView.Presenter::exit); } }); } @Inject  ExpressionEditorControlImpl(final ExpressionEditorView view,
                                       final DecisionNavigatorPresenter decisionNavigator,
                                       final DMNGraphUtils dmnGraphUtils,
                                       final DMNDiagramsSession dmnDiagramsSession,
                                       final Event<CanvasElementUpdatedEvent> canvasElementUpdatedEvent,
                                       final DRDNameChanger drdNameChanger); @Override void bind(final DMNSession session); @Override ExpressionEditorView.Presenter getExpressionEditor(); @SuppressWarnings("unused") void onCanvasFocusedSelectionEvent(final @Observes CanvasSelectionEvent event); void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event);  }