Class ConfigurationProvider
java.lang.Object
org.eclipse.graphiti.ui.internal.config.ConfigurationProvider
- All Implemented Interfaces:
IFeatureProviderHolder
,IConfigurationProviderInternal
,IResourceRegistryHolder
,IConfigurationProvider
A concrete implementation of the interface IConfigurationProviderInternal
-
Constructor Summary
ConstructorDescriptionConfigurationProvider
(DiagramBehavior diagramBehavior, IDiagramTypeProvider diagramTypeProvider) The Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes this object and frees all resources.Returns the Diagram-Model to display.Returns the associated behavior object.Gets the diagram container.Gets the diagram type provider.Returns the IEditPartFactory of this Model.Returns the IEditPolicyFactory of this Model.Gets the feature provider.Provides the resource registry.org.eclipse.ui.IWorkbenchPart
Returns the workbench-part of this configuration-provider.boolean
Returns true, if this object is already disposed.void
setContextButtonManager
(IContextButtonManager contextButtonManager) void
setWorkbenchPart
(org.eclipse.ui.IWorkbenchPart workbenchPart) Sets the workbench-part of this configuration-provider.
-
Constructor Details
-
ConfigurationProvider
public ConfigurationProvider(DiagramBehavior diagramBehavior, IDiagramTypeProvider diagramTypeProvider) The Constructor.- Parameters:
diagramEditor
- the diagram editordiagramTypeProvider
- the diagram type provider
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:IConfigurationProvider
Disposes this object and frees all resources. This object will be unusable afterwards.- Specified by:
dispose
in interfaceIConfigurationProvider
-
isDisposed
public boolean isDisposed()Description copied from interface:IConfigurationProvider
Returns true, if this object is already disposed.- Specified by:
isDisposed
in interfaceIConfigurationProvider
- Returns:
- true, if this object is already disposed.
-
getContextButtonManager
- Specified by:
getContextButtonManager
in interfaceIConfigurationProviderInternal
-
setContextButtonManager
- Specified by:
setContextButtonManager
in interfaceIConfigurationProviderInternal
-
getEditPolicyFactory
Description copied from interface:IConfigurationProviderInternal
Returns the IEditPolicyFactory of this Model.- Specified by:
getEditPolicyFactory
in interfaceIConfigurationProviderInternal
- Returns:
- The IEditPolicyFactory of this Model.
-
getEditPartFactory
Description copied from interface:IConfigurationProviderInternal
Returns the IEditPartFactory of this Model.- Specified by:
getEditPartFactory
in interfaceIConfigurationProviderInternal
- Returns:
- The IEditPartFactory of this Model.
-
setWorkbenchPart
public void setWorkbenchPart(org.eclipse.ui.IWorkbenchPart workbenchPart) Description copied from interface:IConfigurationProvider
Sets the workbench-part of this configuration-provider. This method should be called, when a workbench-part is available for the configuration-provider. After setting the workbench-part it must not be changed again.However, it must not be assumed, that this method is ever called. So the workbench-part might always be null. It is just an offer, to support possible further functionality.
- Specified by:
setWorkbenchPart
in interfaceIConfigurationProvider
- Parameters:
workbenchPart
- The workbench-part to set.
-
getWorkbenchPart
public org.eclipse.ui.IWorkbenchPart getWorkbenchPart()Description copied from interface:IConfigurationProvider
Returns the workbench-part of this configuration-provider. Can return null.- Specified by:
getWorkbenchPart
in interfaceIConfigurationProvider
- Returns:
- The workbench-part of this configuration-provider. Can return null.
-
getDiagramEditor
-
getDiagramContainer
Description copied from interface:IConfigurationProvider
Gets the diagram container.- Specified by:
getDiagramContainer
in interfaceIConfigurationProvider
- Returns:
- the container which is connected with this configuration-provider
-
getDiagramBehavior
Description copied from interface:IConfigurationProvider
Returns the associated behavior object.- Specified by:
getDiagramBehavior
in interfaceIConfigurationProvider
- Returns:
- The associated instance of
DiagramBehavior
.
-
getDiagram
Description copied from interface:IConfigurationProvider
Returns the Diagram-Model to display.- Specified by:
getDiagram
in interfaceIConfigurationProvider
- Returns:
- The Diagram-Model to display.
-
getDiagramTypeProvider
Gets the diagram type provider.- Specified by:
getDiagramTypeProvider
in interfaceIConfigurationProvider
- Returns:
- Returns the diagramTypeProvider.
-
getFeatureProvider
Description copied from interface:IFeatureProviderHolder
Gets the feature provider.- Specified by:
getFeatureProvider
in interfaceIFeatureProviderHolder
- Returns:
- the feature provider
-
getResourceRegistry
Description copied from interface:IResourceRegistryHolder
Provides the resource registry.- Specified by:
getResourceRegistry
in interfaceIResourceRegistryHolder
- Returns:
- the resource registry
- See Also:
-