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()
IDiagramContainer
getDiagramTypeProvider
in interface IDiagramContainer
public PictogramElement[] getSelectedPictogramElements()
IDiagramContainer
getSelectedPictogramElements
in interface IDiagramContainer
public boolean isDirty()
IDiagramContainer
isDirty
in interface IDiagramContainer
true
, if container is dirty, false
otherwisepublic void refreshTitle()
IDiagramContainer
refreshTitle
in interface IDiagramContainer
public void refreshTitleToolTip()
IDiagramContainer
refreshTitleToolTip
in interface IDiagramContainer
public void selectPictogramElements(PictogramElement[] pictogramElements)
IDiagramContainer
selectPictogramElements
in interface IDiagramContainer
pictogramElements
- The pictogram elements to selectpublic void setPictogramElementForSelection(PictogramElement pictogramElement)
IDiagramContainer
setPictogramElementForSelection
in interface IDiagramContainer
pictogramElement
- The pictogram element to selectpublic void setPictogramElementsForSelection(PictogramElement[] pictogramElements)
IDiagramContainer
setPictogramElementsForSelection
in interface IDiagramContainer
pictogramElements
- The pictogram elements to selectpublic boolean isAlive()
public void doSave(IProgressMonitor monitor)
IDiagramContainer
doSave
in interface IDiagramContainer
public java.lang.String getTitle()
IDiagramContainer
getTitle
in interface IDiagramContainer
String
public java.lang.String getTitleToolTip()
IDiagramContainer
getTitleToolTip
in interface IDiagramContainer
String
public void updateDirtyState()
IDiagramContainer
IEditorPart#PROP_DIRTY
property change.updateDirtyState
in interface IDiagramContainer
public void close()
IDiagramContainer
close
in interface IDiagramContainer
public IDiagramBehavior getDiagramBehavior()
IDiagramContainer
getDiagramBehavior
in interface IDiagramContainer
IDiagramBehavior
.