public interface IDiagramTypeProvider extends IExtension, IFeatureProviderHolder
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose.
|
IToolBehaviorProvider[] |
getAvailableToolBehaviorProviders()
Get the list of available tool behaviour providers.
|
java.lang.String |
getContextId()
Gets the context id.
|
int |
getCurrentToolBehaviorIndex() |
IToolBehaviorProvider |
getCurrentToolBehaviorProvider()
Gets the current tool behaviour provider.
|
Diagram |
getDiagram()
Returns the diagram.
|
IDiagramBehavior |
getDiagramBehavior()
Returns the current diagram behavior instance.
|
java.lang.String |
getDiagramTitle()
Returns the diagram title.
|
IGraphicsAlgorithmRendererFactory |
getGraphicsAlgorithmRendererFactory()
Gets the graphics algorithm renderer factory.
|
INotificationService |
getNotificationService()
Returns the notification service.
|
java.lang.Object[] |
getRelatedBusinessObjects(java.lang.Object[] bos)
Gets the related business objects.
|
void |
init(Diagram diagram,
IDiagramBehavior diagramBehavior)
Implement this method to initialize the diagram type provider.
|
boolean |
isAutoUpdateAtReset()
Returns the editor's update behaviour on reset.
|
boolean |
isAutoUpdateAtRuntime()
Returns the editor's update behaviour.
|
boolean |
isAutoUpdateAtRuntimeWhenEditorIsSaved()
Returns the editor's update behaviour when the editor is saved.
|
boolean |
isAutoUpdateAtStartup()
Returns the editor's update behaviour at startup.
|
void |
postInit()
This method will be called after this diagram type provider has been
completely initialised.
|
void |
resourceReloaded(Diagram diagram)
This method will be called if the underlying resource which contains the
diagram has been reloaded.
|
void |
resourcesSaved(Diagram diagram,
org.eclipse.emf.ecore.resource.Resource[] savedResources)
This method will be called by the DiagramEditor when a diagram has been
saved.
|
void |
setContextId(java.lang.String contextId)
Sets the context id.
|
void |
setCurrentToolBehaviorIndex(int index) |
getProviderId, setProviderId
getFeatureProvider
void init(Diagram diagram, IDiagramBehavior diagramBehavior)
diagram
- the currently opened diagramdiagramEditor
- Diagram getDiagram()
INotificationService getNotificationService()
IToolBehaviorProvider[] getAvailableToolBehaviorProviders()
IToolBehaviorProvider
IToolBehaviorProvider getCurrentToolBehaviorProvider()
IToolBehaviorProvider
java.lang.String getDiagramTitle()
boolean isAutoUpdateAtStartup()
boolean isAutoUpdateAtRuntime()
update feature
of the PictogramElement
s changes are indicated
for.isAutoUpdateAtRuntimeWhenEditorIsSaved()
.boolean isAutoUpdateAtRuntimeWhenEditorIsSaved()
isAutoUpdateAtRuntime()
returns
true
and the editor is not dirty. In case this method
returns true
the editor will do an update; this will usually
cause the editor to get dirty.boolean isAutoUpdateAtReset()
IDiagramBehavior getDiagramBehavior()
IDiagramBehavior
void dispose()
java.lang.Object[] getRelatedBusinessObjects(java.lang.Object[] bos)
bos
- the business objectsIGraphicsAlgorithmRendererFactory getGraphicsAlgorithmRendererFactory()
void postInit()
int getCurrentToolBehaviorIndex()
void setCurrentToolBehaviorIndex(int index)
void resourceReloaded(Diagram diagram)
diagram
- void resourcesSaved(Diagram diagram, org.eclipse.emf.ecore.resource.Resource[] savedResources)
diagram
- The diagram for which the editor has been savedsavedResources
- The resources that have been savedjava.lang.String getContextId()
void setContextId(java.lang.String contextId)
contextId
- the new context id