public class DiagramEditorDummy extends java.lang.Object implements IDiagramContainer
| Constructor and Description |
|---|
DiagramEditorDummy(IDiagramTypeProvider diagramTypeProvider,
org.eclipse.emf.transaction.TransactionalEditingDomain eDomain) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Notify the container that it should shut down or clear it's state.
|
void |
doSave(IProgressMonitor monitor)
Triggers that the diagram model is persisted.
|
IDiagramBehavior |
getDiagramBehavior()
Returns the associated diagram behavior instance, that describes and
implements the standard diagram behavior.
|
IDiagramTypeProvider |
getDiagramTypeProvider()
Gets the diagram type provider.
|
PictogramElement[] |
getSelectedPictogramElements()
Gets all pictogram elements that are currently selected.
|
java.lang.String |
getTitle()
Gets the title for the container that is displaying the diagram.
|
java.lang.String |
getTitleToolTip()
Returns the tooltip for the container.
|
boolean |
isAlive() |
boolean |
isDirty()
Checks if the container is dirty.
|
void |
refreshTitle()
Refreshes the title text of this container.
|
void |
refreshTitleToolTip()
Refreshes the title tool tip text of this part.
|
void |
selectPictogramElements(PictogramElement[] pictogramElements)
Selects all the given pictogram elements in the container.
|
void |
setPictogramElementForSelection(PictogramElement pictogramElement)
Sets the pictogram element which should be selected after the container
refresh.
|
void |
setPictogramElementsForSelection(PictogramElement[] pictogramElements)
Sets the pictogram elements which should be selected after the container
refresh.
|
void |
updateDirtyState()
Updates the UI of the container to correctly reflect the dirty state.
|
public DiagramEditorDummy(IDiagramTypeProvider diagramTypeProvider, org.eclipse.emf.transaction.TransactionalEditingDomain eDomain)
public IDiagramTypeProvider getDiagramTypeProvider()
IDiagramContainergetDiagramTypeProvider in interface IDiagramContainerpublic PictogramElement[] getSelectedPictogramElements()
IDiagramContainergetSelectedPictogramElements in interface IDiagramContainerpublic boolean isDirty()
IDiagramContainerisDirty in interface IDiagramContainertrue, if container is dirty, false
otherwisepublic void refreshTitle()
IDiagramContainerrefreshTitle in interface IDiagramContainerpublic void refreshTitleToolTip()
IDiagramContainerrefreshTitleToolTip in interface IDiagramContainerpublic void selectPictogramElements(PictogramElement[] pictogramElements)
IDiagramContainerselectPictogramElements in interface IDiagramContainerpictogramElements - The pictogram elements to selectpublic void setPictogramElementForSelection(PictogramElement pictogramElement)
IDiagramContainersetPictogramElementForSelection in interface IDiagramContainerpictogramElement - The pictogram element to selectpublic void setPictogramElementsForSelection(PictogramElement[] pictogramElements)
IDiagramContainersetPictogramElementsForSelection in interface IDiagramContainerpictogramElements - The pictogram elements to selectpublic boolean isAlive()
public void doSave(IProgressMonitor monitor)
IDiagramContainerdoSave in interface IDiagramContainerpublic java.lang.String getTitle()
IDiagramContainergetTitle in interface IDiagramContainerStringpublic java.lang.String getTitleToolTip()
IDiagramContainergetTitleToolTip in interface IDiagramContainerStringpublic void updateDirtyState()
IDiagramContainerIEditorPart#PROP_DIRTY property change.updateDirtyState in interface IDiagramContainerpublic void close()
IDiagramContainerclose in interface IDiagramContainerpublic IDiagramBehavior getDiagramBehavior()
IDiagramContainergetDiagramBehavior in interface IDiagramContainerIDiagramBehavior.