public interface ICompositeOperation extends IUndoableOperation
ICompositeOperation defines an undoable operation that is composed of child operations. Requests to execute, undo, or redo a composite result in the the execution, undo, or redo of the composite as a whole. Similarly, a request to dispose the composite should result in all child operations being disposed.
Modifier and Type | Method and Description |
---|---|
void |
add(IUndoableOperation operation)
Add the specified operation as a child of this operation.
|
void |
remove(IUndoableOperation operation)
Remove the specified operation from this operation.
|
addContext, canExecute, canRedo, canUndo, dispose, execute, getContexts, getLabel, hasContext, redo, removeContext, undo
void add(IUndoableOperation operation)
Add the specified operation as a child of this operation.
operation
- the operation to be added. If the operation instance has
already been added, this method will have no effect.void remove(IUndoableOperation operation)
Remove the specified operation from this operation.
The composite operation should dispose the operation as part of removing it.
operation
- the operation to be removed. The operation should be disposed
by the receiver. This method will have no effect if the
operation instance is not already a child.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.