@Test public void testBind() { control.bind(session); assertNotNull(control.getExpressionEditor()); verify(editor).bind(session); verify(canvasHandler).addDomainObjectListener(any(CanvasDomainObjectListener.class)); }
@Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this.session = Optional.of(session); this.expressionEditor = Optional.of(editor); this.refreshEditorDomainObjectListener = new RefreshEditorDomainObjectListener(session); session.getCanvasHandler().addDomainObjectListener(refreshEditorDomainObjectListener); }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this.session = Optional.of(session); this.expressionEditor = Optional.of(editor); this.refreshEditorDomainObjectListener = new RefreshEditorDomainObjectListener(session); session.getCanvasHandler().addDomainObjectListener(refreshEditorDomainObjectListener); } }
ExpressionEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionEditorControl { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this.session = Optional.of(session); this.expressionEditor = Optional.of(editor); this.refreshEditorDomainObjectListener = new RefreshEditorDomainObjectListener(session); session.getCanvasHandler().addDomainObjectListener(refreshEditorDomainObjectListener); } @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 { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this.session = Optional.of(session); this.expressionEditor = Optional.of(editor); this.refreshEditorDomainObjectListener = new RefreshEditorDomainObjectListener(session); session.getCanvasHandler().addDomainObjectListener(refreshEditorDomainObjectListener); } @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 { @Override public void bind(final DMNSession session) { final ExpressionEditorView.Presenter editor = makeExpressionEditor(view, decisionNavigator, dmnGraphUtils, dmnDiagramsSession); editor.bind(session); this.session = Optional.of(session); this.expressionEditor = Optional.of(editor); this.refreshEditorDomainObjectListener = new RefreshEditorDomainObjectListener(session); session.getCanvasHandler().addDomainObjectListener(refreshEditorDomainObjectListener); } @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);  }