|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.platform.AbstractExtension
org.eclipse.graphiti.dt.AbstractDiagramTypeProvider
public abstract class AbstractDiagramTypeProvider
The Class AbstractDiagramTypeProvider.
Field Summary | |
---|---|
private IToolBehaviorProvider[] |
availableToolBehaviorProviders
|
private String |
contextId
|
private int |
currentToolBehaviorIndex
|
private Diagram |
diagram
|
private IDiagramBehavior |
diagramBehavior
|
private IFeatureProvider |
featureProvider
|
private INotificationService |
notificationService
|
Constructor Summary | |
---|---|
AbstractDiagramTypeProvider()
Creates a new AbstractDiagramTypeProvider . |
Method Summary | |
---|---|
void |
dispose()
Dispose. |
IToolBehaviorProvider[] |
getAvailableToolBehaviorProviders()
Returns all available tool behavior providers |
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. |
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. |
Object[] |
getRelatedBusinessObjects(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,
Resource[] savedResources)
This method will be called by the DiagramEditor when a diagram has been saved. |
private void |
setAndWireDiagram(Diagram diagram)
|
void |
setContextId(String contextId)
Sets the context id. |
void |
setCurrentToolBehaviorIndex(int index)
|
private void |
setDiagramBehavior(IDiagramBehavior diagramBehavior)
|
protected void |
setFeatureProvider(IFeatureProvider featureProvider)
Sets the feature provider. |
Methods inherited from class org.eclipse.graphiti.platform.AbstractExtension |
---|
getProviderId, setProviderId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.graphiti.platform.IExtension |
---|
getProviderId, setProviderId |
Field Detail |
---|
private IToolBehaviorProvider[] availableToolBehaviorProviders
private Diagram diagram
private IDiagramBehavior diagramBehavior
private IFeatureProvider featureProvider
private INotificationService notificationService
private int currentToolBehaviorIndex
private String contextId
Constructor Detail |
---|
public AbstractDiagramTypeProvider()
AbstractDiagramTypeProvider
.
Method Detail |
---|
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 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 String getContextId()
IDiagramTypeProvider
getContextId
in interface IDiagramTypeProvider
public void setContextId(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 diagramprivate void setDiagramBehavior(IDiagramBehavior diagramBehavior)
private void setAndWireDiagram(Diagram diagram)
diagram
- The diagram to set.protected void setFeatureProvider(IFeatureProvider featureProvider)
featureProvider
- The featureProvider to set.public 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 Object[] getRelatedBusinessObjects(Object[] bos)
IDiagramTypeProvider
getRelatedBusinessObjects
in interface IDiagramTypeProvider
bos
- the business objects
public 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, Resource[] savedResources)
IDiagramTypeProvider
resourcesSaved
in interface IDiagramTypeProvider
diagram
- The diagram for which the editor has been savedsavedResources
- The resources that have been saved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |