|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICustomUndoablePattern
This interface can by used by customers and implemented within any pattern to signal the need for additional undo or redo work. When a pattern implements this interface, and the framework performs an undo or a redo, the framework will call the contained methods.
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean canUndo(IFeature feature, IContext context)
feature
- this is the instance of the IFeature
object that was
in use when executing the pattern functionalitycontext
- this is the instance of the IContext
object that was
in use when executing the feature
void undo(IFeature feature, IContext context)
feature
- this is the instance of the IFeature
object that was
in use when executing the pattern functionalitycontext
- this is the instance of the IContext
object that was
in use when executing the featureboolean canRedo(IFeature feature, IContext context)
feature
- this is the instance of the IFeature
object that was
in use when executing the pattern functionalitycontext
- this is the instance of the IContext
object that was
in use when executing the feature
void redo(IFeature feature, IContext context)
feature
- this is the instance of the IFeature
object that was
in use when executing the pattern functionalitycontext
- this is the instance of the IContext
object that was
in use when executing the feature
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |