Class DiagramBehaviorDummy
java.lang.Object
org.eclipse.graphiti.ui.internal.editor.DiagramBehaviorDummy
- All Implemented Interfaces:
IDiagramBehavior
can be used in the dark feature processing mode
-
Constructor Summary
ConstructorsConstructorDescriptionDiagramBehaviorDummy(IDiagramContainer diagramContainer, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain) -
Method Summary
Modifier and TypeMethodDescriptionexecuteFeature(IFeature feature, IContext context) Returns the associated container visualizing the diagram.org.eclipse.emf.transaction.TransactionalEditingDomainGets the transactional editing domain.voidrefresh()Refreshes the complete visualization.voidRefreshes the content of the container (what's shown inside the diagram itself).voidRefreshes the containers's palette.voidRefreshes all rendering decorators for the given pictogram element.
-
Constructor Details
-
DiagramBehaviorDummy
public DiagramBehaviorDummy(IDiagramContainer diagramContainer, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
-
-
Method Details
-
getDiagramContainer
Description copied from interface:IDiagramBehaviorReturns the associated container visualizing the diagram.- Specified by:
getDiagramContainerin interfaceIDiagramBehavior- Returns:
- The associated instance of
IDiagramContainer.
-
refresh
public void refresh()Description copied from interface:IDiagramBehaviorRefreshes the complete visualization.- Specified by:
refreshin interfaceIDiagramBehavior
-
refreshPalette
public void refreshPalette()Description copied from interface:IDiagramBehaviorRefreshes the containers's palette.- Specified by:
refreshPalettein interfaceIDiagramBehavior
-
refreshContent
public void refreshContent()Description copied from interface:IDiagramBehaviorRefreshes the content of the container (what's shown inside the diagram itself).- Specified by:
refreshContentin interfaceIDiagramBehavior
-
refreshRenderingDecorators
Description copied from interface:IDiagramBehaviorRefreshes all rendering decorators for the given pictogram element. That means: 1. delete current decorators 2. ask the tool behaviour provider for decorator data 3. create new decorators with this data and render this new decorators- Specified by:
refreshRenderingDecoratorsin interfaceIDiagramBehavior- Parameters:
pe- The pictogram element to refresh the decorators for
-
executeFeature
Can be called to execute the givenIFeatureusing the givenIContext; also the Graphiti framework uses this method to call additional features from with feature processing. In the latter case this method is called from with an EMF Transaction so that modifications are wrapped inside this Transaction. In case the method is called directly by a user, it needs to be ensured that the call happens with an EMF transaction, otherwise an according EMF Transactions exception will be thrown.- Specified by:
executeFeaturein interfaceIDiagramBehavior- Parameters:
feature- theIFeatureto executecontext- theIContextto use while executing the feature- Returns:
- in case of an
IAddFeaturebeing passed as feature the newly addedPictogramElementwill be returned (in case the add method returning it), in all other casesnull
-
getEditingDomain
public org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()Description copied from interface:IDiagramBehaviorGets the transactional editing domain.- Specified by:
getEditingDomainin interfaceIDiagramBehavior- Returns:
- The transactional editing domain which is used in the behavior object
-