public class DiagramBehaviorDummy extends java.lang.Object implements IDiagramBehavior
Constructor and Description |
---|
DiagramBehaviorDummy(IDiagramContainer diagramContainer,
org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
executeFeature(IFeature feature,
IContext context)
|
IDiagramContainer |
getDiagramContainer()
Returns the associated container visualizing the diagram.
|
org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain()
Gets the transactional editing domain.
|
void |
refresh()
Refreshes the complete visualization.
|
void |
refreshContent()
Refreshes the content of the container (what's shown inside the diagram
itself).
|
void |
refreshPalette()
Refreshes the containers's palette.
|
void |
refreshRenderingDecorators(PictogramElement pe)
Refreshes all rendering decorators for the given pictogram element.
|
public DiagramBehaviorDummy(IDiagramContainer diagramContainer, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
public IDiagramContainer getDiagramContainer()
IDiagramBehavior
getDiagramContainer
in interface IDiagramBehavior
IDiagramContainer
.public void refresh()
IDiagramBehavior
refresh
in interface IDiagramBehavior
public void refreshPalette()
IDiagramBehavior
refreshPalette
in interface IDiagramBehavior
public void refreshContent()
IDiagramBehavior
refreshContent
in interface IDiagramBehavior
public void refreshRenderingDecorators(PictogramElement pe)
IDiagramBehavior
refreshRenderingDecorators
in interface IDiagramBehavior
pe
- The pictogram element to refresh the decorators forpublic java.lang.Object executeFeature(IFeature feature, IContext context)
IFeature
using the given
IContext
; 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.executeFeature
in interface IDiagramBehavior
feature
- the IFeature
to executecontext
- the IContext
to use while executing the featureIAddFeature
being passed as feature the
newly added PictogramElement
will be returned (in case
the add method returning it), in all other cases
null
public org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()
IDiagramBehavior
getEditingDomain
in interface IDiagramBehavior