org.eclipse.emf.transaction.util
Class ConditionalRedoCommand.Compound
java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.CompoundCommand
org.eclipse.emf.transaction.util.ConditionalRedoCommand.Compound
- All Implemented Interfaces:
- Command, ConditionalRedoCommand
- Direct Known Subclasses:
- TriggerCommand
- Enclosing interface:
- ConditionalRedoCommand
public static class ConditionalRedoCommand.Compound
- extends CompoundCommand
- implements ConditionalRedoCommand
A conditionally redoable compound command.
Constructor Summary |
ConditionalRedoCommand.Compound()
|
ConditionalRedoCommand.Compound(int resultIndex)
|
ConditionalRedoCommand.Compound(int resultIndex,
List<Command> commandList)
|
ConditionalRedoCommand.Compound(int resultIndex,
String label)
|
ConditionalRedoCommand.Compound(int resultIndex,
String label,
List<Command> commandList)
|
ConditionalRedoCommand.Compound(int resultIndex,
String label,
String description)
|
ConditionalRedoCommand.Compound(int resultIndex,
String label,
String description,
List<Command> commandList)
|
ConditionalRedoCommand.Compound(List<Command> commandList)
|
ConditionalRedoCommand.Compound(String label)
|
ConditionalRedoCommand.Compound(String label,
List<Command> commandList)
|
ConditionalRedoCommand.Compound(String label,
String description)
|
ConditionalRedoCommand.Compound(String label,
String description,
List<Command> commandList)
|
Method Summary |
boolean |
canRedo()
I can redo if none of my composed commands cannot redo. |
Command |
chain(Command c)
I am self-chaining. |
Methods inherited from class org.eclipse.emf.common.command.CompoundCommand |
append, appendAndExecute, appendIfCanExecute, canUndo, dispose, execute, getAffectedObjects, getCommandList, getDescription, getLabel, getMergedAffectedObjectsCollection, getMergedResultCollection, getResult, getResultIndex, isEmpty, prepare, redo, toString, undo, unwrap |
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound()
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound(int resultIndex,
List<Command> commandList)
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound(int resultIndex,
String label,
List<Command> commandList)
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound(int resultIndex,
String label,
String description,
List<Command> commandList)
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound(int resultIndex,
String label,
String description)
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound(int resultIndex,
String label)
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound(int resultIndex)
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound(List<Command> commandList)
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound(String label,
List<Command> commandList)
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound(String label,
String description,
List<Command> commandList)
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound(String label,
String description)
ConditionalRedoCommand.Compound
public ConditionalRedoCommand.Compound(String label)
canRedo
public boolean canRedo()
- I can redo if none of my composed commands cannot redo.
- Specified by:
canRedo
in interface ConditionalRedoCommand
- Returns:
false
if any command that is a
ConditionalRedoCommand
cannot redo;
true
, otherwise
chain
public Command chain(Command c)
- I am self-chaining.
- Specified by:
chain
in interface Command
- Overrides:
chain
in class AbstractCommand