|
||||||||||
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 int |
currentToolBahaviorIndex
|
private Diagram |
diagram
|
private IDiagramEditor |
diagramEditor
|
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 |
int |
getCurrentToolBahaviorIndex()
|
IToolBehaviorProvider |
getCurrentToolBehaviorProvider()
Gets the current tool behaviour provider. |
Diagram |
getDiagram()
Returns the diagram. |
IDiagramEditor |
getDiagramEditor()
Returns the current diagram editor. |
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,
IDiagramEditor diagramEditor)
Implement this method to initialise the diagram type provider. |
boolean |
isAutoUpdateAtReset()
Returns the editor's update behaviour on reset. |
boolean |
isAutoUpdateAtRuntime()
Returns the editor's update behaviour. |
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 |
setCurrentToolBahaviorIndex(int index)
|
private void |
setDiagram(Diagram diagram)
|
private void |
setDiagramEditor(IDiagramEditor diagramEditor)
|
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 IDiagramEditor diagramEditor
private IFeatureProvider featureProvider
private INotificationService notificationService
private int currentToolBahaviorIndex
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 getCurrentToolBahaviorIndex()
getCurrentToolBahaviorIndex
in interface IDiagramTypeProvider
public void setCurrentToolBahaviorIndex(int index)
setCurrentToolBahaviorIndex
in interface IDiagramTypeProvider
public Diagram getDiagram()
IDiagramTypeProvider
getDiagram
in interface IDiagramTypeProvider
public java.lang.String getDiagramTitle()
IDiagramTypeProvider
getDiagramTitle
in interface IDiagramTypeProvider
public IDiagramEditor getDiagramEditor()
IDiagramTypeProvider
getDiagramEditor
in interface IDiagramTypeProvider
public IFeatureProvider getFeatureProvider()
IFeatureProviderHolder
getFeatureProvider
in interface IFeatureProviderHolder
public void init(Diagram diagram, IDiagramEditor diagramEditor)
IDiagramTypeProvider
init
in interface IDiagramTypeProvider
diagram
- the currently opened diagramdiagramEditor
- TODOprivate void setDiagramEditor(IDiagramEditor diagramEditor)
private void setDiagram(Diagram diagram)
diagram
- The diagram to set.protected void setFeatureProvider(IFeatureProvider featureProvider)
featureProvider
- The featureProvider to set.public boolean isAutoUpdateAtRuntime()
IDiagramTypeProvider
isAutoUpdateAtRuntime
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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |