Class DiagramEditorDummy
java.lang.Object
org.eclipse.graphiti.ui.internal.editor.DiagramEditorDummy
- All Implemented Interfaces:
IDiagramContainer
can be used in the dark feature processing mode
-
Constructor Summary
ConstructorsConstructorDescriptionDiagramEditorDummy(IDiagramTypeProvider diagramTypeProvider, org.eclipse.emf.transaction.TransactionalEditingDomain eDomain) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Notify the container that it should shut down or clear it's state.voiddoSave(org.eclipse.core.runtime.IProgressMonitor monitor) Triggers that the diagram model is persisted.Returns the associated diagram behavior instance, that describes and implements the standard diagram behavior.Gets the diagram type provider.Gets all pictogram elements that are currently selected.getTitle()Gets the title for the container that is displaying the diagram.Returns the tooltip for the container.booleanisAlive()booleanisDirty()Checks if the container is dirty.voidRefreshes the title text of this container.voidRefreshes the title tool tip text of this part.voidselectPictogramElements(PictogramElement[] pictogramElements) Selects all the given pictogram elements in the container.protected voidsetDiagramTypeProvider(IDiagramTypeProvider diagramTypeProvider) voidsetPictogramElementForSelection(PictogramElement pictogramElement) Sets the pictogram element which should be selected after the container refresh.voidsetPictogramElementsForSelection(PictogramElement[] pictogramElements) Sets the pictogram elements which should be selected after the container refresh.voidUpdates the UI of the container to correctly reflect the dirty state.
-
Constructor Details
-
DiagramEditorDummy
public DiagramEditorDummy(IDiagramTypeProvider diagramTypeProvider, org.eclipse.emf.transaction.TransactionalEditingDomain eDomain)
-
-
Method Details
-
getDiagramTypeProvider
Description copied from interface:IDiagramContainerGets the diagram type provider.- Specified by:
getDiagramTypeProviderin interfaceIDiagramContainer- Returns:
- The diagram type provider
-
getSelectedPictogramElements
Description copied from interface:IDiagramContainerGets all pictogram elements that are currently selected.- Specified by:
getSelectedPictogramElementsin interfaceIDiagramContainer- Returns:
- all selected pictogram elements
-
isDirty
public boolean isDirty()Description copied from interface:IDiagramContainerChecks if the container is dirty.- Specified by:
isDirtyin interfaceIDiagramContainer- Returns:
true, if container is dirty,falseotherwise
-
refreshTitle
public void refreshTitle()Description copied from interface:IDiagramContainerRefreshes the title text of this container. It depends on the container type what and if anything is refreshed, for an editor e.g. the part tab will be refreshed.- Specified by:
refreshTitlein interfaceIDiagramContainer
-
refreshTitleToolTip
public void refreshTitleToolTip()Description copied from interface:IDiagramContainerRefreshes the title tool tip text of this part. It depends on the container type what and if anything is refreshed, for an editor e.g. the part tab tooltip will be refreshed.- Specified by:
refreshTitleToolTipin interfaceIDiagramContainer
-
selectPictogramElements
Description copied from interface:IDiagramContainerSelects all the given pictogram elements in the container.- Specified by:
selectPictogramElementsin interfaceIDiagramContainer- Parameters:
pictogramElements- The pictogram elements to select
-
setPictogramElementForSelection
Description copied from interface:IDiagramContainerSets the pictogram element which should be selected after the container refresh.- Specified by:
setPictogramElementForSelectionin interfaceIDiagramContainer- Parameters:
pictogramElement- The pictogram element to select
-
setPictogramElementsForSelection
Description copied from interface:IDiagramContainerSets the pictogram elements which should be selected after the container refresh.- Specified by:
setPictogramElementsForSelectionin interfaceIDiagramContainer- Parameters:
pictogramElements- The pictogram elements to select
-
setDiagramTypeProvider
-
isAlive
public boolean isAlive() -
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:IDiagramContainerTriggers that the diagram model is persisted.- Specified by:
doSavein interfaceIDiagramContainer
-
getTitle
Description copied from interface:IDiagramContainerGets the title for the container that is displaying the diagram.- Specified by:
getTitlein interfaceIDiagramContainer- Returns:
- The title as a
String
-
getTitleToolTip
Description copied from interface:IDiagramContainerReturns the tooltip for the container. For an editor that would e.g. be the string that is displayed when hovering over the editor title tab.- Specified by:
getTitleToolTipin interfaceIDiagramContainer- Returns:
- The tooltip as a
String
-
updateDirtyState
public void updateDirtyState()Description copied from interface:IDiagramContainerUpdates the UI of the container to correctly reflect the dirty state. What (and if anything) happens depends on the container type. The default implementation in the editor e.g. does this by firing aIEditorPart#PROP_DIRTYproperty change.- Specified by:
updateDirtyStatein interfaceIDiagramContainer
-
close
public void close()Description copied from interface:IDiagramContainerNotify the container that it should shut down or clear it's state.- Specified by:
closein interfaceIDiagramContainer
-
getDiagramBehavior
Description copied from interface:IDiagramContainerReturns the associated diagram behavior instance, that describes and implements the standard diagram behavior.- Specified by:
getDiagramBehaviorin interfaceIDiagramContainer- Returns:
- The associated instance of
IDiagramBehavior.
-