@Test public void testOnCanvasElementUpdated() { control.bind(session); final CanvasElementUpdatedEvent event = new CanvasElementUpdatedEvent(canvasHandler, node); control.onCanvasElementUpdated(event); verify(editor).handleCanvasElementUpdated(event); }
public void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { expressionEditor.ifPresent(editor -> editor.handleCanvasElementUpdated(event)); }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { public void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { expressionEditor.ifPresent(editor -> editor.handleCanvasElementUpdated(event)); } }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { public void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { expressionEditor.ifPresent(editor -> editor.handleCanvasElementUpdated(event)); } @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 { public void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { expressionEditor.ifPresent(editor -> editor.handleCanvasElementUpdated(event)); } @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 { public void onCanvasElementUpdated(final @Observes CanvasElementUpdatedEvent event) { expressionEditor.ifPresent(editor -> editor.handleCanvasElementUpdated(event)); } @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);  }