public abstract class AbstractDiagramTypeProvider extends AbstractExtension implements IDiagramTypeProvider
| Constructor and Description |
|---|
AbstractDiagramTypeProvider()
Creates a new
AbstractDiagramTypeProvider. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose.
|
IToolBehaviorProvider[] |
getAvailableToolBehaviorProviders()
Returns all available tool behavior 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.
|
IFeatureProvider |
getFeatureProvider()
Gets the feature provider.
|
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, setProviderIdequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProviderId, setProviderIdpublic AbstractDiagramTypeProvider()
AbstractDiagramTypeProvider.public IToolBehaviorProvider[] getAvailableToolBehaviorProviders()
getAvailableToolBehaviorProviders in interface IDiagramTypeProviderIToolBehaviorProviderpublic IToolBehaviorProvider getCurrentToolBehaviorProvider()
IDiagramTypeProvidergetCurrentToolBehaviorProvider in interface IDiagramTypeProviderIToolBehaviorProviderpublic int getCurrentToolBehaviorIndex()
getCurrentToolBehaviorIndex in interface IDiagramTypeProviderpublic void setCurrentToolBehaviorIndex(int index)
setCurrentToolBehaviorIndex in interface IDiagramTypeProviderpublic Diagram getDiagram()
IDiagramTypeProvidergetDiagram in interface IDiagramTypeProviderpublic java.lang.String getDiagramTitle()
IDiagramTypeProvidergetDiagramTitle in interface IDiagramTypeProviderpublic IDiagramBehavior getDiagramBehavior()
IDiagramTypeProvidergetDiagramBehavior in interface IDiagramTypeProviderIDiagramBehaviorpublic IFeatureProvider getFeatureProvider()
IFeatureProviderHoldergetFeatureProvider in interface IFeatureProviderHolderpublic java.lang.String getContextId()
IDiagramTypeProvidergetContextId in interface IDiagramTypeProviderpublic void setContextId(java.lang.String contextId)
IDiagramTypeProvidersetContextId in interface IDiagramTypeProvidercontextId - the new context idpublic void init(Diagram diagram, IDiagramBehavior diagramBehavior)
IDiagramTypeProviderinit in interface IDiagramTypeProviderdiagram - the currently opened diagrampublic boolean isAutoUpdateAtRuntime()
IDiagramTypeProviderupdate feature of the PictogramElements changes are indicated
for.IDiagramTypeProvider.isAutoUpdateAtRuntimeWhenEditorIsSaved().isAutoUpdateAtRuntime in interface IDiagramTypeProviderpublic boolean isAutoUpdateAtRuntimeWhenEditorIsSaved()
IDiagramTypeProviderIDiagramTypeProvider.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.isAutoUpdateAtRuntimeWhenEditorIsSaved in interface IDiagramTypeProviderpublic boolean isAutoUpdateAtStartup()
IDiagramTypeProviderisAutoUpdateAtStartup in interface IDiagramTypeProviderpublic boolean isAutoUpdateAtReset()
IDiagramTypeProviderisAutoUpdateAtReset in interface IDiagramTypeProviderpublic void dispose()
IDiagramTypeProviderdispose in interface IDiagramTypeProviderpublic INotificationService getNotificationService()
IDiagramTypeProvidergetNotificationService in interface IDiagramTypeProviderpublic java.lang.Object[] getRelatedBusinessObjects(java.lang.Object[] bos)
IDiagramTypeProvidergetRelatedBusinessObjects in interface IDiagramTypeProviderbos - the business objectspublic IGraphicsAlgorithmRendererFactory getGraphicsAlgorithmRendererFactory()
IDiagramTypeProvidergetGraphicsAlgorithmRendererFactory in interface IDiagramTypeProviderpublic void postInit()
IDiagramTypeProviderpostInit in interface IDiagramTypeProviderpublic void resourceReloaded(Diagram diagram)
IDiagramTypeProviderresourceReloaded in interface IDiagramTypeProviderpublic void resourcesSaved(Diagram diagram, org.eclipse.emf.ecore.resource.Resource[] savedResources)
IDiagramTypeProviderresourcesSaved in interface IDiagramTypeProviderdiagram - The diagram for which the editor has been savedsavedResources - The resources that have been saved