|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ICustomUndoRedoFeature
instead
public interface ICustomUndoableFeature
This interface can by used and implemented by customers within any feature to signal the need for additional undo or redo work. When a feature 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 change (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 feature or not. The
feature may use the context object (e.g. the contained properties set) passed
to the contained methods while executing the feature in order to collect any
information needed for undo.
Method Summary | |
---|---|
boolean |
canRedo(IContext context)
Deprecated. Decides if the processed feature can be re-done. |
boolean |
canUndo(IContext context)
Deprecated. Decides if the changes done by a processed feature can be undone. |
void |
redo(IContext context)
Deprecated. This method will be called to actually do the work needed for redo. |
void |
undo(IContext context)
Deprecated. This method will be called to actually do the work needed for undo. |
Method Detail |
---|
boolean canUndo(IContext context)
Note that as soon as any feature reports false
here, also
all previous entries in the command stack are no longer reachable for
undo.
Note: this method with exactly the same signature is also already part of
the IFeature
contract. It is repeated here for transparency
purposes only.
context
- this is the instance of the IContext
object that was
in use when executing the feature.
void undo(IContext context)
context
- this is the instance of the IContext
object that was
in use when executing the featureboolean canRedo(IContext context)
Note that as soon as any feature reports false
here, also
all consecutive entries in the command stack are no longer reachable for
redo.
context
- this is the instance of the IContext
object that was
in use when executing the feature
void redo(IContext context)
context
- 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 |