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