@Test public void checkMayCloseWithCleanDecisionTableGraphEntries() { checkMayCloseWithDecisionTableGraphEntries(0, () -> assertTrue(presenter.mayClose())); }
@Override @OnMayClose public boolean mayClose() { setMayCloseHandler(this::doMayCloseGraph); boolean mayClose = mayClose(originalGraphHash, buildModelFromEditor().hashCode()); setMayCloseHandler(this::doMayCloseDocument); mayClose = mayClose && super.mayClose(); return mayClose; }
GuidedDecisionTableGraphEditorPresenter extends BaseGuidedDecisionTableEditorPresenter implements HasSearchableElements<GuidedDecisionTableSearchableElement> { @Override @OnMayClose public boolean mayClose() { setMayCloseHandler(this::doMayCloseGraph); boolean mayClose = mayClose(originalGraphHash, buildModelFromEditor().hashCode()); setMayCloseHandler(this::doMayCloseDocument); mayClose = mayClose && super.mayClose(); return mayClose; } }
GuidedDecisionTableGraphEditorPresenter extends BaseGuidedDecisionTableEditorPresenter implements HasSearchableElements<GuidedDecisionTableSearchableElement> { @Override @OnMayClose public boolean mayClose() { setMayCloseHandler(this::doMayCloseGraph); boolean mayClose = mayClose(originalGraphHash, buildModelFromEditor().hashCode()); setMayCloseHandler(this::doMayCloseDocument); mayClose = mayClose && super.mayClose(); return mayClose; } @Inject  GuidedDecisionTableGraphEditorPresenter(final View view,
                                                   final Caller<GuidedDecisionTableEditorService> service,
                                                   final AuthoringWorkbenchDocks docks,
                                                   final PerspectiveManager perspectiveManager,
                                                   final Caller<GuidedDecisionTableGraphEditorService> graphService,
                                                   final Caller<KieModuleService> moduleService,
                                                   final Caller<GuidedDecisionTableGraphSaveAndRenameService> graphSaveAndRenameService,
                                                   final Event<NotificationEvent> notification,
                                                   final Event<SaveInProgressEvent> saveInProgressEvent,
                                                   final Event<DecisionTableSelectedEvent> decisionTableSelectedEvent,
                                                   final GuidedDecisionTableDocksHandler guidedDecisionTableDocksHandler,
                                                   final AnalysisReportScreen analysisReportScreen,
                                                   final ValidationPopup validationPopup,
                                                   final GuidedDTableGraphResourceType dtGraphResourceType,
                                                   final EditMenuBuilder editMenuBuilder,
                                                   final ViewMenuBuilder viewMenuBuilder,
                                                   final InsertMenuBuilder insertMenuBuilder,
                                                   final RadarMenuBuilder radarMenuBuilder,
                                                   final GuidedDecisionTableModellerView.Presenter modeller,
                                                   final NewGuidedDecisionTableWizardHelper helper,
                                                   final SyncBeanManager beanManager,
                                                   final PlaceManager placeManager,
                                                   final LockManager lockManager,
                                                   final ColumnsPage columnsPage,
                                                   final SaveAndRenameCommandBuilder<List<GuidedDecisionTableEditorContent>, Metadata> saveAndRenameCommandBuilder,
                                                   final AlertsButtonMenuItemBuilder alertsButtonMenuItemBuilder,
                                                   final DownloadMenuItemBuilder downloadMenuItem,
                                                   final GuidedDecisionTableEditorSearchIndex editorSearchIndex,
                                                   final SearchBarComponent<GuidedDecisionTableSearchableElement> searchBarComponent,
                                                   final SearchableElementFactory searchableElementFactory,
                                                   final Event<SearchPerformedEvent> searchPerformedEvent); }
GuidedDecisionTableGraphEditorPresenter extends BaseGuidedDecisionTableEditorPresenter implements HasSearchableElements<GuidedDecisionTableSearchableElement> { @Override @OnMayClose public boolean mayClose() { setMayCloseHandler(this::doMayCloseGraph); boolean mayClose = mayClose(originalGraphHash, buildModelFromEditor().hashCode()); setMayCloseHandler(this::doMayCloseDocument); mayClose = mayClose && super.mayClose(); return mayClose; } @Inject  GuidedDecisionTableGraphEditorPresenter(final View view,
                                                   final Caller<GuidedDecisionTableEditorService> service,
                                                   final AuthoringWorkbenchDocks docks,
                                                   final PerspectiveManager perspectiveManager,
                                                   final Caller<GuidedDecisionTableGraphEditorService> graphService,
                                                   final Caller<KieModuleService> moduleService,
                                                   final Caller<GuidedDecisionTableGraphSaveAndRenameService> graphSaveAndRenameService,
                                                   final Event<NotificationEvent> notification,
                                                   final Event<SaveInProgressEvent> saveInProgressEvent,
                                                   final Event<DecisionTableSelectedEvent> decisionTableSelectedEvent,
                                                   final GuidedDecisionTableDocksHandler guidedDecisionTableDocksHandler,
                                                   final AnalysisReportScreen analysisReportScreen,
                                                   final ValidationPopup validationPopup,
                                                   final GuidedDTableGraphResourceType dtGraphResourceType,
                                                   final EditMenuBuilder editMenuBuilder,
                                                   final ViewMenuBuilder viewMenuBuilder,
                                                   final InsertMenuBuilder insertMenuBuilder,
                                                   final RadarMenuBuilder radarMenuBuilder,
                                                   final GuidedDecisionTableModellerView.Presenter modeller,
                                                   final NewGuidedDecisionTableWizardHelper helper,
                                                   final SyncBeanManager beanManager,
                                                   final PlaceManager placeManager,
                                                   final LockManager lockManager,
                                                   final ColumnsPage columnsPage,
                                                   final SaveAndRenameCommandBuilder<List<GuidedDecisionTableEditorContent>, Metadata> saveAndRenameCommandBuilder,
                                                   final AlertsButtonMenuItemBuilder alertsButtonMenuItemBuilder,
                                                   final DownloadMenuItemBuilder downloadMenuItem,
                                                   final GuidedDecisionTableEditorSearchIndex editorSearchIndex,
                                                   final SearchBarComponent<GuidedDecisionTableSearchableElement> searchBarComponent,
                                                   final SearchableElementFactory searchableElementFactory,
                                                   final Event<SearchPerformedEvent> searchPerformedEvent); @PostConstruct void init(); @Override List<GuidedDecisionTableSearchableElement> getSearchableElements(); @Override @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest placeRequest); @Override @OnFocus void onFocus(); @Override void loadDocument(final ObservablePath path,
                             final PlaceRequest placeRequest); @Override @WorkbenchPartTitle String getTitleText(); @Override @WorkbenchPartView IsWidget getWidget(); @Override @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @Override @OnMayClose boolean mayClose(); @Override @OnClose void onClose(); @Override Promise<Void> makeMenuBar(); @Override void getAvailableDocumentPaths(final Callback<List<Path>> callback); @Override void onOpenDocumentsInEditor(final List<Path> selectedDocumentPaths); }
GuidedDecisionTableGraphEditorPresenter extends BaseGuidedDecisionTableEditorPresenter implements HasSearchableElements<GuidedDecisionTableSearchableElement> { @Override @OnMayClose public boolean mayClose() { setMayCloseHandler(this::doMayCloseGraph); boolean mayClose = mayClose(originalGraphHash, buildModelFromEditor().hashCode()); setMayCloseHandler(this::doMayCloseDocument); mayClose = mayClose && super.mayClose(); return mayClose; } @Inject  GuidedDecisionTableGraphEditorPresenter(final View view,
                                                   final Caller<GuidedDecisionTableEditorService> service,
                                                   final AuthoringWorkbenchDocks docks,
                                                   final PerspectiveManager perspectiveManager,
                                                   final Caller<GuidedDecisionTableGraphEditorService> graphService,
                                                   final Caller<KieModuleService> moduleService,
                                                   final Caller<GuidedDecisionTableGraphSaveAndRenameService> graphSaveAndRenameService,
                                                   final Event<NotificationEvent> notification,
                                                   final Event<SaveInProgressEvent> saveInProgressEvent,
                                                   final Event<DecisionTableSelectedEvent> decisionTableSelectedEvent,
                                                   final GuidedDecisionTableDocksHandler guidedDecisionTableDocksHandler,
                                                   final AnalysisReportScreen analysisReportScreen,
                                                   final ValidationPopup validationPopup,
                                                   final GuidedDTableGraphResourceType dtGraphResourceType,
                                                   final EditMenuBuilder editMenuBuilder,
                                                   final ViewMenuBuilder viewMenuBuilder,
                                                   final InsertMenuBuilder insertMenuBuilder,
                                                   final RadarMenuBuilder radarMenuBuilder,
                                                   final GuidedDecisionTableModellerView.Presenter modeller,
                                                   final NewGuidedDecisionTableWizardHelper helper,
                                                   final SyncBeanManager beanManager,
                                                   final PlaceManager placeManager,
                                                   final LockManager lockManager,
                                                   final ColumnsPage columnsPage,
                                                   final SaveAndRenameCommandBuilder<List<GuidedDecisionTableEditorContent>, Metadata> saveAndRenameCommandBuilder,
                                                   final AlertsButtonMenuItemBuilder alertsButtonMenuItemBuilder,
                                                   final DownloadMenuItemBuilder downloadMenuItem,
                                                   final GuidedDecisionTableEditorSearchIndex editorSearchIndex,
                                                   final SearchBarComponent<GuidedDecisionTableSearchableElement> searchBarComponent,
                                                   final SearchableElementFactory searchableElementFactory,
                                                   final Event<SearchPerformedEvent> searchPerformedEvent); @PostConstruct void init(); @Override List<GuidedDecisionTableSearchableElement> getSearchableElements(); @Override @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest placeRequest); @Override @OnFocus void onFocus(); @Override void loadDocument(final ObservablePath path,
                             final PlaceRequest placeRequest); @Override @WorkbenchPartTitle String getTitleText(); @Override @WorkbenchPartView IsWidget getWidget(); @Override @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @Override @OnMayClose boolean mayClose(); @Override @OnClose void onClose(); @Override Promise<Void> makeMenuBar(); @Override void getAvailableDocumentPaths(final Callback<List<Path>> callback); @Override void onOpenDocumentsInEditor(final List<Path> selectedDocumentPaths); static final String IDENTIFIER; }