public interface ICustomUndoablePattern
Implementing this interface is especially helpful if customers want to
implement undo/redo functionality for non-EMF changes, e.g. for non-EMF
domain models. Note that any EMF-model changes (including the changes done to
the graphical representation (Graphiti PictogramElement
s and
GraphicsAlgorithm
s will by handled automatically by the Graphiti
framework no matter if this interface is implemented by a pattern or not.
Modifier and Type | Method and Description |
---|---|
boolean |
canRedo(IFeature feature,
IContext context)
Decides if the processed pattern functionality can be re-done.
|
boolean |
canUndo(IFeature feature,
IContext context)
Decides if the processed pattern functionality can be undone.
|
void |
redo(IFeature feature,
IContext context)
This method will be called to actually do the work needed for redo.
|
void |
undo(IFeature feature,
IContext context)
This method will be called to actually do the work needed for undo.
|
boolean canUndo(IFeature feature, IContext context)
void undo(IFeature feature, IContext context)
boolean canRedo(IFeature feature, IContext context)
void redo(IFeature feature, IContext context)