GuidedDecisionTablePresenter implements GuidedDecisionTableView.Presenter { @Override public void enterPinnedMode(final GridWidget gridWidget, final Command onStartCommand) { parent.enterPinnedMode(gridWidget, onStartCommand); } @Inject  GuidedDecisionTablePresenter(final User identity,
                                        final GuidedDTableResourceType resourceType,
                                        final Caller<RuleNamesService> ruleNameService,
                                        final Event<DecisionTableSelectedEvent> decisionTableSelectedEvent,
                                        final Event<DecisionTableColumnSelectedEvent> decisionTableColumnSelectedEvent,
                                        final Event<DecisionTableSelectionsChangedEvent> decisionTableSelectionsChangedEvent,
                                        final Event<RefreshAttributesPanelEvent> refreshAttributesPanelEvent,
                                        final Event<RefreshMetaDataPanelEvent> refreshMetaDataPanelEvent,
                                        final Event<RefreshConditionsPanelEvent> refreshConditionsPanelEvent,
                                        final Event<RefreshActionsPanelEvent> refreshActionsPanelEvent,
                                        final Event<RefreshMenusEvent> refreshMenusEvent,
                                        final Event<NotificationEvent> notificationEvent,
                                        final GridWidgetCellFactory gridWidgetCellFactory,
                                        final GridWidgetColumnFactory gridWidgetColumnFactory,
                                        final AsyncPackageDataModelOracleFactory oracleFactory,
                                        final ModelSynchronizer synchronizer,
                                        final SyncBeanManager beanManager,
                                        final @GuidedDecisionTable GuidedDecisionTableLockManager lockManager,
                                        final GuidedDecisionTableLinkManager linkManager,
                                        final Clipboard clipboard,
                                        final DecisionTableAnalyzerProvider decisionTableAnalyzerProvider,
                                        final EnumLoaderUtilities enumLoaderUtilities,
                                        final PluginHandler pluginHandler,
                                        final AuthorizationManager authorizationManager,
                                        final SessionInfo sessionInfo); @Override Set<PortableWorkDefinition> getWorkItemDefinitions(); @Override EventBus getEventBus(); @Override void activate(); @Override GuidedDecisionTable52 getModel(); @Override AsyncPackageDataModelOracle getDataModelOracle(); @Override Overview getOverview(); @Override GuidedDecisionTableView getView(); @Override GuidedDecisionTableModellerView.Presenter getModellerPresenter(); @Override void setContent(final ObservablePath path,
                           final PlaceRequest placeRequest,
                           final AnalysisReportScreen analysisReportScreen,
                           final GuidedDecisionTableEditorContent content,
                           final GuidedDecisionTableModellerView.Presenter parent,
                           final boolean isReadOnly); @Override void refreshContent(final ObservablePath path,
                               final PlaceRequest placeRequest,
                               final GuidedDecisionTableEditorContent content,
                               final boolean isReadOnly); @Override void link(final Set<GuidedDecisionTableView.Presenter> dtPresenters); @Override Access getAccess(); @Override void onClose(); @Override void initialiseAnalysis(); @Override void terminateAnalysis(); @Override @SuppressWarnings("unused") void select(final GridWidget selectedGridWidget); @Override void selectLinkedColumn(final GridColumn<?> column); @Override Set<GridWidget> getGridWidgets(); @Override void enterPinnedMode(final GridWidget gridWidget,
                                final Command onStartCommand); @Override void exitPinnedMode(final Command onCompleteCommand); @Override void updatePinnedContext(final GridWidget gridWidget); @Override PinnedContext getPinnedContext(); @Override boolean isGridPinned(); @Override TransformMediator getDefaultTransformMediator(); @Override void addOnEnterPinnedModeCommand(final Command command); @Override void addOnExitPinnedModeCommand(final Command command); @Override void getPackageParentRuleNames(final ParameterizedCommand<Collection<String>> command); @Override void setParentRuleName(final String parentName); @Override boolean hasColumnDefinitions(); @Override Set<String> getBindings(final String className); @Override List<String> getLHSBoundFacts(); @Override Map<String, String> getValueListLookups(final BaseColumn column); @Override void getEnumLookups(final String factType,
                               final String factField,
                               final DependentEnumsUtilities.Context context,
                               final Callback<Map<String, String>> callback); @Override Set<String> getReservedAttributeNames(); @Override boolean isMetaDataUnique(final String metaDataName); @Override void editCondition(final Pattern52 pattern,
                              final ConditionCol52 column); @Override void editCondition(final BRLConditionColumn column); @Override void editAction(final ActionCol52 column); @Override void appendColumn(final AttributeCol52 column); @Override void appendColumn(final MetadataCol52 column); @Override void appendColumn(final Pattern52 pattern,
                             final ConditionCol52 column); @Override void appendColumn(final ConditionCol52 column); @Override void appendColumn(final ActionCol52 column); @Override void onAppendRow(); @Override void deleteColumn(final AttributeCol52 column); @Override void deleteColumn(final MetadataCol52 column); @Override void deleteColumn(final ConditionCol52 column); @Override void deleteColumn(final ActionCol52 column); @Override void setShowRuleName(final boolean show); @Override void updateColumn(final AttributeCol52 originalColumn,
                             final AttributeCol52 editedColumn); @Override void updateColumn(final MetadataCol52 originalColumn,
                             final MetadataCol52 editedColumn); @Override void updateColumn(final Pattern52 originalPattern,
                             final ConditionCol52 originalColumn,
                             final Pattern52 editedPattern,
                             final ConditionCol52 editedColumn); @Override void updateColumn(final ConditionCol52 originalColumn,
                             final ConditionCol52 editedColumn); @Override void updateColumn(final ActionCol52 originalColumn,
                             final ActionCol52 editedColumn); @Override void onCut(); @Override void onCopy(); @Override void onPaste(); @Override void onDeleteSelectedCells(); @Override void onDeleteSelectedColumns(); @Override void onDeleteSelectedRows(); @Override boolean isMerged(); @Override void setMerged(final boolean merged); @Override void showAuditLog(); @Override void onInsertRowAbove(); @Override void onInsertRowBelow(); @Override void onOtherwiseCell(); @Override String getVersion(); @Override void setVersion(final String version); @Override ObservablePath getLatestPath(); @Override void setLatestPath(final ObservablePath latestPath); @Override ObservablePath getCurrentPath(); @Override void setCurrentPath(final ObservablePath currentPath); @Override PlaceRequest getPlaceRequest(); @Override boolean isReadOnly(); @Override void setReadOnly(final boolean isReadOnly); @Override boolean hasEditableColumns(); @Override Integer getOriginalHashCode(); @Override void setOriginalHashCode(final Integer originalHashCode); @Override ObservablePath.OnConcurrentUpdateEvent getConcurrentUpdateSessionInfo(); @Override void setConcurrentUpdateSessionInfo(final ObservablePath.OnConcurrentUpdateEvent concurrentUpdateSessionInfo);  }
@Test @SuppressWarnings("unchecked") public void checkRegisteredNodeMouseDoubleClickHandlerNotOverHeader() { final ArgumentCaptor<NodeMouseDoubleClickHandler> nodeMouseDoubleClickHandlerArgumentCaptor = ArgumentCaptor.forClass(NodeMouseDoubleClickHandler.class); verify(view, times(1)).registerNodeMouseDoubleClickHandler(nodeMouseDoubleClickHandlerArgumentCaptor.capture()); final NodeMouseDoubleClickHandler nodeMouseDoubleClickHandler = nodeMouseDoubleClickHandlerArgumentCaptor.getValue(); assertNotNull(nodeMouseDoubleClickHandler); final NodeMouseDoubleClickEvent event = mock(NodeMouseDoubleClickEvent.class); when(view.isNodeMouseEventOverCaption(eq(event))).thenReturn(false); nodeMouseDoubleClickHandler.onNodeMouseDoubleClick(event); verify(dtPresenter, never()).enterPinnedMode(any(GridWidget.class), any(Command.class)); verify(dtPresenter, never()).enterPinnedMode(any(GridWidget.class), any(Command.class)); }