public abstract class AbstractProjectDiagramEditor<R extends org.uberfire.client.workbench.type.ClientResourceType> extends KieEditor<ProjectDiagram>
| Modifier and Type | Class and Description |
|---|---|
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,
javax.enterprise.event.Event<OnDiagramFocusEvent> onDiagramFocusEvent,
javax.enterprise.event.Event<OnDiagramLoseFocusEvent> onDiagramLostFocusEvent,
DocumentationView documentationView,
R resourceType,
AbstractDiagramEditorMenuSessionItems<?> menuSessionItems,
ProjectMessagesListener projectMessagesListener,
ClientTranslationService translationService,
ClientProjectDiagramService projectDiagramServices,
org.jboss.errai.common.client.api.Caller<ProjectDiagramResourceService> projectDiagramResourceServiceCaller,
StunnerEditor stunnerEditor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDocumentationPage(ProjectDiagram diagram) |
protected void |
beforeOpen(ProjectDiagram diagram) |
protected void |
destroySession() |
protected void |
doClose() |
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.
|
protected Supplier<ProjectDiagram> |
getContentSupplier() |
protected Integer |
getCurrentContentHash() |
protected 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<ProjectDiagram,org.guvnor.common.services.shared.metadata.model.Metadata>> |
getSaveAndRenameServiceCaller() |
org.jboss.errai.common.client.api.RemoteCallback<org.uberfire.backend.vfs.Path> |
getSaveSuccessCallback(int newHash) |
StunnerEditor |
getStunnerEditor() |
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 |
isSameSession(ClientSession other) |
boolean |
isSaveAllowedAfterValidationFailed(Violation.Type maxSeverity) |
protected void |
loadContent() |
protected void |
makeAdditionalStunnerMenus(FileMenuBuilder fileMenuBuilder) |
protected elemental2.promise.Promise<Void> |
makeMenuBar() |
void |
onError(ClientRuntimeError error) |
protected void |
onSave() |
protected void |
onSaveSuccess() |
protected org.uberfire.mvp.ParameterizedCommand<org.uberfire.backend.vfs.Path> |
onSuccess() |
protected void |
onValidate(org.uberfire.mvp.Command finished) |
void |
open(ProjectDiagram diagram) |
void |
open(ProjectDiagram diagram,
SessionPresenter.SessionPresenterCallback callback) |
protected void |
save(String commitMessage) |
void |
setOriginalHash(Integer originalHash) |
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, save, saveAction, selectEditorTab, selectOverviewTab, 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, reload, setMetadataOriginalHash, showConcurrentUpdatePopuppublic AbstractProjectDiagramEditor(AbstractProjectDiagramEditor.View view, javax.enterprise.event.Event<OnDiagramFocusEvent> onDiagramFocusEvent, javax.enterprise.event.Event<OnDiagramLoseFocusEvent> onDiagramLostFocusEvent, DocumentationView documentationView, R resourceType, AbstractDiagramEditorMenuSessionItems<?> menuSessionItems, ProjectMessagesListener projectMessagesListener, ClientTranslationService translationService, ClientProjectDiagramService projectDiagramServices, org.jboss.errai.common.client.api.Caller<ProjectDiagramResourceService> projectDiagramResourceServiceCaller, StunnerEditor stunnerEditor)
@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<ProjectDiagram,org.guvnor.common.services.shared.metadata.model.Metadata>public void open(ProjectDiagram diagram)
public void open(ProjectDiagram diagram, SessionPresenter.SessionPresenterCallback callback)
protected void beforeOpen(ProjectDiagram diagram)
public void initialiseKieEditorForSession(ProjectDiagram diagram)
protected void onValidate(org.uberfire.mvp.Command finished)
onValidate in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagram,org.guvnor.common.services.shared.metadata.model.Metadata>public boolean isSaveAllowedAfterValidationFailed(Violation.Type maxSeverity)
protected void save(String commitMessage)
save in class KieEditor<ProjectDiagram>protected void onSave()
onSave in class KieEditor<ProjectDiagram>protected void onSaveSuccess()
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<ProjectDiagram,org.guvnor.common.services.shared.metadata.model.Metadata>public void hideDocks()
hideDocks in class KieEditor<ProjectDiagram>public void showDocks()
showDocks in class KieEditor<ProjectDiagram>protected Annotation[] getDockQualifiers()
public abstract String getEditorIdentifier()
getEditorIdentifier in class KieEditor<ProjectDiagram>protected elemental2.promise.Promise<Void> makeMenuBar()
makeMenuBar in class KieEditor<ProjectDiagram>protected org.uberfire.mvp.Command getSaveAndRename()
getSaveAndRename in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagram,org.guvnor.common.services.shared.metadata.model.Metadata>protected org.uberfire.mvp.ParameterizedCommand<org.uberfire.backend.vfs.Path> onSuccess()
onSuccess in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagram,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<ProjectDiagram,org.guvnor.common.services.shared.metadata.model.Metadata>> getSaveAndRenameServiceCaller()
getSaveAndRenameServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagram,org.guvnor.common.services.shared.metadata.model.Metadata>protected Supplier<ProjectDiagram> getContentSupplier()
getContentSupplier in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagram,org.guvnor.common.services.shared.metadata.model.Metadata>protected Integer getCurrentContentHash()
getCurrentContentHash in class org.uberfire.ext.editor.commons.client.BaseEditor<ProjectDiagram,org.guvnor.common.services.shared.metadata.model.Metadata>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<ProjectDiagram,org.guvnor.common.services.shared.metadata.model.Metadata>protected void updateTitle(String title)
protected String formatTitle(String title)
title - diagram metadata titleprotected AbstractProjectDiagramEditor.View getView()
protected void destroySession()
public void addDocumentationPage(ProjectDiagram diagram)
public void onError(ClientRuntimeError error)
public void setOriginalHash(Integer originalHash)
setOriginalHash in class KieEditor<ProjectDiagram>protected boolean hasUnsavedChanges()
protected ClientTranslationService getTranslationService()
protected void makeAdditionalStunnerMenus(FileMenuBuilder fileMenuBuilder)
public AbstractDiagramEditorMenuSessionItems getMenuSessionItems()
public StunnerEditor getStunnerEditor()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.