|
||||||||||
| 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 IDiagramTypeProviderIToolBehaviorProviderpublic IToolBehaviorProvider getCurrentToolBehaviorProvider()
IDiagramTypeProvider
getCurrentToolBehaviorProvider in interface IDiagramTypeProviderIToolBehaviorProviderpublic int getCurrentToolBehaviorIndex()
getCurrentToolBehaviorIndex in interface IDiagramTypeProviderpublic void setCurrentToolBehaviorIndex(int index)
setCurrentToolBehaviorIndex in interface IDiagramTypeProviderpublic Diagram getDiagram()
IDiagramTypeProvider
getDiagram in interface IDiagramTypeProviderpublic String getDiagramTitle()
IDiagramTypeProvider
getDiagramTitle in interface IDiagramTypeProviderpublic IDiagramBehavior getDiagramBehavior()
IDiagramTypeProvider
getDiagramBehavior in interface IDiagramTypeProviderIDiagramBehaviorpublic IFeatureProvider getFeatureProvider()
IFeatureProviderHolder
getFeatureProvider in interface IFeatureProviderHolderpublic String getContextId()
IDiagramTypeProvider
getContextId in interface IDiagramTypeProviderpublic void setContextId(String contextId)
IDiagramTypeProvider
setContextId in interface IDiagramTypeProvidercontextId - the new context id
public void init(Diagram diagram,
IDiagramBehavior diagramBehavior)
IDiagramTypeProvider
init in interface IDiagramTypeProviderdiagram - 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()
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()
IDiagramTypeProvider
isAutoUpdateAtStartup in interface IDiagramTypeProviderpublic boolean isAutoUpdateAtReset()
IDiagramTypeProvider
isAutoUpdateAtReset in interface IDiagramTypeProviderpublic void dispose()
IDiagramTypeProvider
dispose in interface IDiagramTypeProviderpublic INotificationService getNotificationService()
IDiagramTypeProvider
getNotificationService in interface IDiagramTypeProviderpublic Object[] getRelatedBusinessObjects(Object[] bos)
IDiagramTypeProvider
getRelatedBusinessObjects in interface IDiagramTypeProviderbos - the business objects
public IGraphicsAlgorithmRendererFactory getGraphicsAlgorithmRendererFactory()
IDiagramTypeProvider
getGraphicsAlgorithmRendererFactory in interface IDiagramTypeProviderpublic void postInit()
IDiagramTypeProvider
postInit in interface IDiagramTypeProviderpublic void resourceReloaded(Diagram diagram)
IDiagramTypeProvider
resourceReloaded in interface IDiagramTypeProvider
public void resourcesSaved(Diagram diagram,
Resource[] savedResources)
IDiagramTypeProvider
resourcesSaved in interface IDiagramTypeProviderdiagram - 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 | |||||||||