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()
IDiagramBehaviorgetDiagramContainer in interface IDiagramBehaviorIDiagramContainer.public void refresh()
IDiagramBehaviorrefresh in interface IDiagramBehaviorpublic void refreshPalette()
IDiagramBehaviorrefreshPalette in interface IDiagramBehaviorpublic void refreshContent()
IDiagramBehaviorrefreshContent in interface IDiagramBehaviorpublic void refreshRenderingDecorators(PictogramElement pe)
IDiagramBehaviorrefreshRenderingDecorators in interface IDiagramBehaviorpe - 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 IDiagramBehaviorfeature - 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
nullpublic org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()
IDiagramBehaviorgetEditingDomain in interface IDiagramBehavior