public abstract class AbstractProjectDiagramEditor<R extends org.uberfire.client.workbench.type.ClientResourceType> extends KieEditor<ProjectDiagramResource> implements DiagramEditorCore<ProjectMetadata,ProjectDiagram>
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractProjectDiagramEditor.ProjectDiagramEditorCore |
static interface |
AbstractProjectDiagramEditor.View |
alertsButtonMenuItemBuilder, assetUpdateValidator, copyPopUpPresenter, docks, fileMenuBuilder, kieView, metadata, overviewWidget, perspectiveManager, projectController, renamePopUpPresenter, savePopUpPresenter, workbenchContextbaseView, changeTitleNotification, concurrentChangePopup, concurrentDeleteAcceptedEvent, concurrentDeleteIgnoredEvent, concurrentRenameAcceptedEvent, concurrentRenameIgnoredEvent, concurrentUpdateSessionInfo, deletePopUpPresenter, fileNameValidator, isReadOnly, isValidationRunning, makeMenuBarPromise, menuBuilder, menuBuilderManagedInstance, menuItems, menus, metadataOriginalHash, notification, originalHash, place, placeManager, promises, saveAndRenameCommandBuilder, saveWithComments, type, versionRecordManager| Constructor and Description |
|---|
AbstractProjectDiagramEditor(AbstractProjectDiagramEditor.View view,
org.uberfire.ext.widgets.core.client.editors.texteditor.TextEditorView xmlEditorView,
org.jboss.errai.ioc.client.api.ManagedInstance<SessionEditorPresenter<EditorSession>> editorSessionPresenterInstances,
org.jboss.errai.ioc.client.api.ManagedInstance<SessionViewerPresenter<ViewerSession>> viewerSessionPresenterInstances,
javax.enterprise.event.Event<OnDiagramFocusEvent> onDiagramFocusEvent,
javax.enterprise.event.Event<OnDiagramLoseFocusEvent> onDiagramLostFocusEvent,
javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent,
org.uberfire.client.workbench.widgets.common.ErrorPopupPresenter errorPopupPresenter,
DiagramClientErrorHandler diagramClientErrorHandler,
DocumentationView documentationView,
R resourceType,
AbstractDiagramEditorMenuSessionItems<?> menuSessionItems,
ProjectMessagesListener projectMessagesListener,
ClientTranslationService translationService,
ClientProjectDiagramService projectDiagramServices,
org.jboss.errai.common.client.api.Caller<ProjectDiagramResourceService> projectDiagramResourceServiceCaller) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDocumentationPage(ProjectDiagram diagram) |
protected void |
destroySession() |
protected void |
doClose() |
void |
doFocus() |
void |
doLostFocus() |
protected void |
doOpen() |
protected void |
doSave(org.uberfire.mvp.Command continueSaveOnceValid) |
protected void |
doSave(String commitMessage) |
protected void |
doStartUp(org.uberfire.backend.vfs.ObservablePath path,
org.uberfire.mvp.PlaceRequest place) |
protected String |
formatTitle(String title)
Format the Diagram title to be displayed on the Editor.
|
CanvasHandler |
getCanvasHandler() |
protected Supplier<ProjectDiagramResource> |
getContentSupplier() |
protected Integer |
getCurrentContentHash() |
int |
getCurrentDiagramHash() |
protected String |
getDiagramParsingErrorMessage(DiagramParsingException e) |
Annotation[] |
getDockQualifiers() |
abstract String |
getEditorIdentifier() |
AbstractDiagramEditorMenuSessionItems |
getMenuSessionItems() |
protected org.uberfire.mvp.Command |
getSaveAndRename() |
protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<ProjectDiagramResource,org.guvnor.common.services.shared.metadata.model.Metadata>> |
getSaveAndRenameServiceCaller() |
org.jboss.errai.common.client.api.RemoteCallback<org.uberfire.backend.vfs.Path> |
getSaveSuccessCallback(int newHash) |
SessionPresenter<? extends ClientSession,?,Diagram> |
getSessionPresenter() |
String |
getTitleText() |
protected ClientTranslationService |
getTranslationService() |
protected AbstractProjectDiagramEditor.View |
getView() |
protected boolean |
hasUnsavedChanges() |
void |
hideDocks() |
protected void |
hideLoadingViews() |
void |
init() |
void |
initialiseKieEditorForSession(ProjectDiagram diagram) |
protected boolean |
isReadOnly() |
protected boolean |
isSameSession(ClientSession other) |
protected void |
loadContent() |
protected void |
log(Level level,
String message) |
protected void |
makeAdditionalStunnerMenus(FileMenuBuilder fileMenuBuilder) |
protected AbstractProjectDiagramEditorCore<ProjectMetadata,ProjectDiagram,ProjectDiagramResource,ProjectDiagramEditorProxy<ProjectDiagramResource>> |
makeCore(AbstractProjectDiagramEditor.View view,
org.uberfire.ext.widgets.core.client.editors.texteditor.TextEditorView xmlEditorView,
javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent,
org.jboss.errai.ioc.client.api.ManagedInstance<SessionEditorPresenter<EditorSession>> editorSessionPresenterInstances,
org.jboss.errai.ioc.client.api.ManagedInstance<SessionViewerPresenter<ViewerSession>> viewerSessionPresenterInstances,
AbstractDiagramEditorMenuSessionItems<?> menuSessionItems,
org.uberfire.client.workbench.widgets.common.ErrorPopupPresenter errorPopupPresenter,
DiagramClientErrorHandler diagramClientErrorHandler,
ClientTranslationService translationService) |
protected elemental2.promise.Promise<Void> |
makeMenuBar() |
SessionEditorPresenter<EditorSession> |
newSessionEditorPresenter() |
SessionViewerPresenter<ViewerSession> |
newSessionViewerPresenter() |
protected void |
onDiagramLoad() |
protected void |
onSave() |
void |
onSaveError(ClientRuntimeError error) |
protected void |
onSaveSuccess() |
protected void |
onValidate(org.uberfire.mvp.Command finished) |
void |
open(ProjectDiagram diagram,
Viewer.Callback callback) |
protected void |
save()
This method is called just once clicking on save.
|
protected void |
save(String commitMessage)
Considering the diagram valid at this point ,
it delegates the save operation to the diagram services bean.
|
void |
showDocks() |
protected void |
showLoadingViews() |
protected void |
showSavingViews() |
protected void |
updateTitle(String title) |
addCommonActions, addCopy, addDelete, addDownloadMenuItem, addImportsTab, addPage, addRename, addSave, addSourcePage, addTabBarWidget, buildMenuBar, createOriginalHash, getCouldNotGenerateSourceErrorCallback, getMetadataSupplier, getNoSuchFileExceptionErrorCallback, getRenameValidator, getSelectedTabIndex, getWidget, init, init, init, init, isEditorTabSelected, isOverviewTabSelected, mayClose, mayClose, onClose, onEditTabSelected, onEditTabUnselected, onHideDocks, onOverviewSelected, onRepositoryRemoved, onShowDiagramEditorDocks, onSourceTabSelected, registerDock, resetEditorPages, resetEditorPagesOnLoadError, resetMetadata, saveAction, selectEditorTab, selectOverviewTab, setOriginalHash, setSelectedTab, showVersions, updateSource, verifyEventIdentifieraddDownloadMenuItem, disableMenuItem, downloadMenuItem, enableMenuItem, getBeforeSaveAndRenameCommand, getCopyServiceCaller, getCopyValidator, getDeleteServiceCaller, getMenus, getPathSupplier, getRenameServiceCaller, getSaveAndRenameCommandBuilder, getSaveValidator, getTitle, getValidateCommand, getVersionRecordManager, init, isDirty, isDirtySupplier, onAfterValidate, onBeforeValidate, onRename, onRestore, onSuccess, reload, setMetadataOriginalHash, showConcurrentUpdatePopuppublic AbstractProjectDiagramEditor(AbstractProjectDiagramEditor.View view, org.uberfire.ext.widgets.core.client.editors.texteditor.TextEditorView xmlEditorView, org.jboss.errai.ioc.client.api.ManagedInstance<SessionEditorPresenter<EditorSession>> editorSessionPresenterInstances, org.jboss.errai.ioc.client.api.ManagedInstance<SessionViewerPresenter<ViewerSession>> viewerSessionPresenterInstances, javax.enterprise.event.Event<OnDiagramFocusEvent> onDiagramFocusEvent, javax.enterprise.event.Event<OnDiagramLoseFocusEvent> onDiagramLostFocusEvent, javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent, org.uberfire.client.workbench.widgets.common.ErrorPopupPresenter errorPopupPresenter, DiagramClientErrorHandler diagramClientErrorHandler, DocumentationView documentationView, R resourceType, AbstractDiagramEditorMenuSessionItems<?> menuSessionItems, ProjectMessagesListener projectMessagesListener, ClientTranslationService translationService, ClientProjectDiagramService projectDiagramServices, org.jboss.errai.common.client.api.Caller<ProjectDiagramResourceService> projectDiagramResourceServiceCaller)
protected String getDiagramParsingErrorMessage(DiagramParsingException e)
protected AbstractProjectDiagramEditorCore<ProjectMetadata,ProjectDiagram,ProjectDiagramResource,ProjectDiagramEditorProxy<ProjectDiagramResource>> makeCore(AbstractProjectDiagramEditor.View view, org.uberfire.ext.widgets.core.client.editors.texteditor.TextEditorView xmlEditorView, javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent, org.jboss.errai.ioc.client.api.ManagedInstance<SessionEditorPresenter<EditorSession>> editorSessionPresenterInstances, org.jboss.errai.ioc.client.api.ManagedInstance<SessionViewerPresenter<ViewerSession>> viewerSessionPresenterInstances, AbstractDiagramEditorMenuSessionItems<?> menuSessionItems, org.uberfire.client.workbench.widgets.common.ErrorPopupPresenter errorPopupPresenter, DiagramClientErrorHandler diagramClientErrorHandler, ClientTranslationService translationService)
@PostConstruct public void init()
protected void doStartUp(org.uberfire.backend.vfs.ObservablePath path,
org.uberfire.mvp.PlaceRequest place)
protected void loadContent()
loadContent in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagramResource,org.guvnor.common.services.shared.metadata.model.Metadata>protected boolean isReadOnly()
protected void onValidate(org.uberfire.mvp.Command finished)
onValidate in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagramResource,org.guvnor.common.services.shared.metadata.model.Metadata>protected void save()
save in class KieEditor<ProjectDiagramResource>protected void doSave(org.uberfire.mvp.Command continueSaveOnceValid)
protected void save(String commitMessage)
save in class KieEditor<ProjectDiagramResource>commitMessage - The commit's message.protected void doSave(String commitMessage)
public org.jboss.errai.common.client.api.RemoteCallback<org.uberfire.backend.vfs.Path> getSaveSuccessCallback(int newHash)
getSaveSuccessCallback in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagramResource,org.guvnor.common.services.shared.metadata.model.Metadata>public void hideDocks()
hideDocks in class KieEditor<ProjectDiagramResource>public void showDocks()
showDocks in class KieEditor<ProjectDiagramResource>public abstract String getEditorIdentifier()
getEditorIdentifier in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>getEditorIdentifier in class KieEditor<ProjectDiagramResource>protected elemental2.promise.Promise<Void> makeMenuBar()
makeMenuBar in class KieEditor<ProjectDiagramResource>protected org.uberfire.mvp.Command getSaveAndRename()
getSaveAndRename in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagramResource,org.guvnor.common.services.shared.metadata.model.Metadata>protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<ProjectDiagramResource,org.guvnor.common.services.shared.metadata.model.Metadata>> getSaveAndRenameServiceCaller()
getSaveAndRenameServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagramResource,org.guvnor.common.services.shared.metadata.model.Metadata>protected Supplier<ProjectDiagramResource> getContentSupplier()
getContentSupplier in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagramResource,org.guvnor.common.services.shared.metadata.model.Metadata>protected Integer getCurrentContentHash()
getCurrentContentHash in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagramResource,org.guvnor.common.services.shared.metadata.model.Metadata>protected void doOpen()
protected void doClose()
protected void showLoadingViews()
protected void showSavingViews()
protected void hideLoadingViews()
protected boolean isSameSession(ClientSession other)
public String getTitleText()
getTitleText in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagramResource,org.guvnor.common.services.shared.metadata.model.Metadata>protected void onSave()
onSave in class KieEditor<ProjectDiagramResource>protected void updateTitle(String title)
protected String formatTitle(String title)
title - diagram metadata titleprotected AbstractProjectDiagramEditor.View getView()
protected void onSaveSuccess()
public void open(ProjectDiagram diagram, Viewer.Callback callback)
open in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>public Annotation[] getDockQualifiers()
getDockQualifiers in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>public void initialiseKieEditorForSession(ProjectDiagram diagram)
initialiseKieEditorForSession in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>protected void destroySession()
public void addDocumentationPage(ProjectDiagram diagram)
protected void onDiagramLoad()
public SessionEditorPresenter<EditorSession> newSessionEditorPresenter()
newSessionEditorPresenter in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>public SessionViewerPresenter<ViewerSession> newSessionViewerPresenter()
newSessionViewerPresenter in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>public int getCurrentDiagramHash()
getCurrentDiagramHash in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>public CanvasHandler getCanvasHandler()
getCanvasHandler in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>public void onSaveError(ClientRuntimeError error)
onSaveError in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>public SessionPresenter<? extends ClientSession,?,Diagram> getSessionPresenter()
getSessionPresenter in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>public void doFocus()
doFocus in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>public void doLostFocus()
doLostFocus in interface DiagramEditorCore<ProjectMetadata,ProjectDiagram>protected boolean hasUnsavedChanges()
protected ClientTranslationService getTranslationService()
protected void makeAdditionalStunnerMenus(FileMenuBuilder fileMenuBuilder)
public AbstractDiagramEditorMenuSessionItems getMenuSessionItems()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.