|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDiagramContainer
The Interface IDiagramContainer. This is the base interface for all containers that can display diagrams. Such a container may be an editor or a view, possibly also a plain composite used within e.g. a popup or inside an editor or view.
Method Summary | |
---|---|
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. |
String |
getTitle()
Gets the title for the container that is displaying the diagram. |
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. |
Method Detail |
---|
void selectPictogramElements(PictogramElement[] pictogramElements)
selectPictogramElements
in interface IDiagramEditor
pictogramElements
- The pictogram elements to selectPictogramElement[] getSelectedPictogramElements()
getSelectedPictogramElements
in interface IDiagramEditor
void setPictogramElementForSelection(PictogramElement pictogramElement)
setPictogramElementForSelection
in interface IDiagramEditor
pictogramElement
- The pictogram element to selectvoid setPictogramElementsForSelection(PictogramElement[] pictogramElements)
setPictogramElementsForSelection
in interface IDiagramEditor
pictogramElements
- The pictogram elements to selectString getTitle()
String
String getTitleToolTip()
String
void refreshTitle()
refreshTitle
in interface IDiagramEditor
void refreshTitleToolTip()
refreshTitleToolTip
in interface IDiagramEditor
boolean isDirty()
isDirty
in interface IDiagramEditor
true
, if container is dirty, false
otherwisevoid doSave(IProgressMonitor monitor)
void updateDirtyState()
IEditorPart#PROP_DIRTY
property change.
void close()
IDiagramTypeProvider getDiagramTypeProvider()
getDiagramTypeProvider
in interface IDiagramEditor
IDiagramBehavior getDiagramBehavior()
IDiagramBehavior
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |