int getCurrentHashCode() { return buildModelFromEditor().hashCode(); }
int getCurrentHashCode() { return buildModelFromEditor().hashCode(); }
@Override public void callback(final Path path) { editorView.hideBusyIndicator(); versionRecordManager.reloadVersions(path); originalGraphHash = model.hashCode(); concurrentUpdateSessionInfo = null; notificationEvent.fire(new NotificationEvent(CommonConstants.INSTANCE.ItemSavedSuccessfully())); } },
@Override public void callback(final Path path) { editorView.hideBusyIndicator(); versionRecordManager.reloadVersions(path); originalGraphHash = model.hashCode(); concurrentUpdateSessionInfo = null; notificationEvent.fire(new NotificationEvent(CommonConstants.INSTANCE.ItemSavedSuccessfully())); } },
private RemoteCallback<GuidedDecisionTableEditorGraphContent> getLoadGraphContentSuccessCallback() { return (content) -> { this.content = content; this.originalGraphHash = content.getModel().hashCode(); this.concurrentUpdateSessionInfo = null; final GuidedDecisionTableEditorGraphModel model = content.getModel(); final Set<GuidedDecisionTableEditorGraphModel.GuidedDecisionTableGraphEntry> modelEntries = model.getEntries(); initialiseEditorTabsWhenNoDocuments(); if (modelEntries == null || modelEntries.isEmpty()) { view.hideBusyIndicator(); return; } loadGraphLatch = new LoadGraphLatch(modelEntries.size(), getSelectDecisionTableCommand(modelEntries.iterator().next().getPathHead()), () -> { originalGraphHash = buildModelFromEditor().hashCode(); modeller.getView().getGridPanel().setFocus(true); }); modelEntries.stream().forEach(loadGraphLatch::loadDocumentGraphEntry); }; }
private RemoteCallback<GuidedDecisionTableEditorGraphContent> getLoadGraphContentSuccessCallback() { return (content) -> { this.content = content; this.originalGraphHash = content.getModel().hashCode(); this.concurrentUpdateSessionInfo = null; final GuidedDecisionTableEditorGraphModel model = content.getModel(); final Set<GuidedDecisionTableEditorGraphModel.GuidedDecisionTableGraphEntry> modelEntries = model.getEntries(); initialiseEditorTabsWhenNoDocuments(); if (modelEntries == null || modelEntries.isEmpty()) { view.hideBusyIndicator(); return; } loadGraphLatch = new LoadGraphLatch(modelEntries.size(), getSelectDecisionTableCommand(modelEntries.iterator().next().getPathHead()), () -> { originalGraphHash = buildModelFromEditor().hashCode(); modeller.getView().getGridPanel().setFocus(true); }); modelEntries.stream().forEach(loadGraphLatch::loadDocumentGraphEntry); }; }
@Override @OnMayClose public boolean mayClose() { setMayCloseHandler(this::doMayCloseGraph); boolean mayClose = mayClose(originalGraphHash, buildModelFromEditor().hashCode()); setMayCloseHandler(this::doMayCloseDocument); mayClose = mayClose && super.mayClose(); return mayClose; }
@Override @OnMayClose public boolean mayClose() { setMayCloseHandler(this::doMayCloseGraph); boolean mayClose = mayClose(originalGraphHash, buildModelFromEditor().hashCode()); setMayCloseHandler(this::doMayCloseDocument); mayClose = mayClose && super.mayClose(); return mayClose; }