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, setProviderId
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProviderId, setProviderId
public AbstractDiagramTypeProvider()
AbstractDiagramTypeProvider
.public IToolBehaviorProvider[] getAvailableToolBehaviorProviders()
getAvailableToolBehaviorProviders
in interface IDiagramTypeProvider
IToolBehaviorProvider
public IToolBehaviorProvider getCurrentToolBehaviorProvider()
IDiagramTypeProvider
getCurrentToolBehaviorProvider
in interface IDiagramTypeProvider
IToolBehaviorProvider
public int getCurrentToolBehaviorIndex()
getCurrentToolBehaviorIndex
in interface IDiagramTypeProvider
public void setCurrentToolBehaviorIndex(int index)
setCurrentToolBehaviorIndex
in interface IDiagramTypeProvider
public Diagram getDiagram()
IDiagramTypeProvider
getDiagram
in interface IDiagramTypeProvider
public java.lang.String getDiagramTitle()
IDiagramTypeProvider
getDiagramTitle
in interface IDiagramTypeProvider
public IDiagramBehavior getDiagramBehavior()
IDiagramTypeProvider
getDiagramBehavior
in interface IDiagramTypeProvider
IDiagramBehavior
public IFeatureProvider getFeatureProvider()
IFeatureProviderHolder
getFeatureProvider
in interface IFeatureProviderHolder
public java.lang.String getContextId()
IDiagramTypeProvider
getContextId
in interface IDiagramTypeProvider
public void setContextId(java.lang.String contextId)
IDiagramTypeProvider
setContextId
in interface IDiagramTypeProvider
contextId
- the new context idpublic void init(Diagram diagram, IDiagramBehavior diagramBehavior)
IDiagramTypeProvider
init
in interface IDiagramTypeProvider
diagram
- the currently opened diagrampublic boolean isAutoUpdateAtRuntime()
IDiagramTypeProvider
update feature
of the PictogramElement
s changes are indicated
for.IDiagramTypeProvider.isAutoUpdateAtRuntimeWhenEditorIsSaved()
.isAutoUpdateAtRuntime
in interface IDiagramTypeProvider
public boolean isAutoUpdateAtRuntimeWhenEditorIsSaved()
IDiagramTypeProvider
IDiagramTypeProvider.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 IDiagramTypeProvider
public boolean isAutoUpdateAtStartup()
IDiagramTypeProvider
isAutoUpdateAtStartup
in interface IDiagramTypeProvider
public boolean isAutoUpdateAtReset()
IDiagramTypeProvider
isAutoUpdateAtReset
in interface IDiagramTypeProvider
public void dispose()
IDiagramTypeProvider
dispose
in interface IDiagramTypeProvider
public INotificationService getNotificationService()
IDiagramTypeProvider
getNotificationService
in interface IDiagramTypeProvider
public java.lang.Object[] getRelatedBusinessObjects(java.lang.Object[] bos)
IDiagramTypeProvider
getRelatedBusinessObjects
in interface IDiagramTypeProvider
bos
- the business objectspublic IGraphicsAlgorithmRendererFactory getGraphicsAlgorithmRendererFactory()
IDiagramTypeProvider
getGraphicsAlgorithmRendererFactory
in interface IDiagramTypeProvider
public void postInit()
IDiagramTypeProvider
postInit
in interface IDiagramTypeProvider
public void resourceReloaded(Diagram diagram)
IDiagramTypeProvider
resourceReloaded
in interface IDiagramTypeProvider
public void resourcesSaved(Diagram diagram, org.eclipse.emf.ecore.resource.Resource[] savedResources)
IDiagramTypeProvider
resourcesSaved
in interface IDiagramTypeProvider
diagram
- The diagram for which the editor has been savedsavedResources
- The resources that have been saved