|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Command | |
|---|---|
| org.eclipse.emf.common.command | Provides a framework for implementing and composing commands. |
| Uses of Command in org.eclipse.emf.common.command |
|---|
| Classes in org.eclipse.emf.common.command that implement Command | |
|---|---|
class |
AbstractCommand
An abstract implementation of a basic command. |
class |
CommandWrapper
A command that wraps another command. |
class |
CompoundCommand
A command that comprises a sequence of subcommands. |
class |
IdentityCommand
A command that always produces the same result. |
class |
StrictCompoundCommand
A composite command which assumes that later commands in the list may depend on the results and side-effects of earlier commands in the list. |
class |
UnexecutableCommand
A singleton UnexecutableCommand.INSTANCE that cannot execute. |
| Fields in org.eclipse.emf.common.command declared as Command | |
|---|---|
protected Command |
CommandWrapper.command
The command for which this is a proxy or decorator. |
protected Command |
BasicCommandStack.mostRecentCommand
The command most recently executed, undone, or redone. |
| Fields in org.eclipse.emf.common.command with type parameters of type Command | |
|---|---|
protected java.util.List<Command> |
CompoundCommand.commandList
The list of subcommands. |
protected java.util.List<Command> |
BasicCommandStack.commandList
The list of commands. |
| Methods in org.eclipse.emf.common.command that return Command | |
|---|---|
Command |
Command.chain(Command command)
Returns a command that represents the composition of this command with the given command. |
Command |
AbstractCommand.chain(Command command)
Creates a new compound command, containing this command and the given command, that delegates chain to CompoundCommand.append(org.eclipse.emf.common.command.Command). |
protected Command |
CommandWrapper.createCommand()
Create the command being proxied. |
Command |
CommandWrapper.getCommand()
Returns the command for which this is a proxy or decorator. |
Command |
CommandStack.getMostRecentCommand()
Returns the command most recently executed, undone, or redone. |
Command |
BasicCommandStack.getMostRecentCommand()
|
Command |
CommandStack.getRedoCommand()
Returns the command that will be redone if CommandStack.redo() is called. |
Command |
BasicCommandStack.getRedoCommand()
|
Command |
CommandStack.getUndoCommand()
Returns the command that will be undone if CommandStack.undo() is called. |
Command |
BasicCommandStack.getUndoCommand()
|
Command |
CompoundCommand.unwrap()
Returns one of three things: UnexecutableCommand.INSTANCE, if there are no commands,
the one command, if there is exactly one command,
or this, if there are multiple commands;
this command is CompoundCommand.dispose()d in the first two cases. |
| Methods in org.eclipse.emf.common.command that return types with arguments of type Command | |
|---|---|
java.util.List<Command> |
CompoundCommand.getCommandList()
Returns an unmodifiable view of the commands in the list. |
| Methods in org.eclipse.emf.common.command with parameters of type Command | |
|---|---|
void |
CompoundCommand.append(Command command)
Adds a command to this compound command's list of commands. |
boolean |
StrictCompoundCommand.appendAndExecute(Command command)
Checks if the command can execute; if so, it is executed, appended to the list, and true is returned,
if not, it is just disposed and false is returned. |
boolean |
CompoundCommand.appendAndExecute(Command command)
Checks if the command can execute; if so, it is executed, appended to the list, and true is returned, if not, it is just disposed and false is returned. |
boolean |
CompoundCommand.appendIfCanExecute(Command command)
Adds a command to this compound command's the list of commands and returns true,
if command. returns true;
otherwise, it simply calls command.
and returns false. |
Command |
Command.chain(Command command)
Returns a command that represents the composition of this command with the given command. |
Command |
AbstractCommand.chain(Command command)
Creates a new compound command, containing this command and the given command, that delegates chain to CompoundCommand.append(org.eclipse.emf.common.command.Command). |
void |
CommandStack.execute(Command command)
Clears any redoable commands not yet redone, adds the command, and then executes the command. |
void |
BasicCommandStack.execute(Command command)
|
| Constructors in org.eclipse.emf.common.command with parameters of type Command | |
|---|---|
CommandWrapper(Command command)
Creates a decorator instance for the given command. |
|
CommandWrapper(java.lang.String label,
Command command)
Creates a decorator instance with the given label for the given command. |
|
CommandWrapper(java.lang.String label,
java.lang.String description,
Command command)
Creates a decorator instance with the given label and description for the given command. |
|
| Constructor parameters in org.eclipse.emf.common.command with type arguments of type Command | |
|---|---|
CompoundCommand(int resultIndex,
java.util.List<Command> commandList)
Creates an instance with the given result index and list. |
|
CompoundCommand(int resultIndex,
java.lang.String label,
java.util.List<Command> commandList)
Creates an instance with the given resultIndex, label, and list. |
|
CompoundCommand(int resultIndex,
java.lang.String label,
java.lang.String description,
java.util.List<Command> commandList)
Creates an instance with the given result index, label, description, and list. |
|
CompoundCommand(java.util.List<Command> commandList)
Creates an instance with the given list. |
|
CompoundCommand(java.lang.String label,
java.util.List<Command> commandList)
Creates instance with the given label and list. |
|
CompoundCommand(java.lang.String label,
java.lang.String description,
java.util.List<Command> commandList)
Creates an instance with the given label, description, and list. |
|
StrictCompoundCommand(java.util.List<Command> commandList)
Creates an instance with the given command list. |
|
StrictCompoundCommand(java.lang.String label,
java.util.List<Command> commandList)
Creates an instance with the given label and command list. |
|
StrictCompoundCommand(java.lang.String label,
java.lang.String description,
java.util.List<Command> commandList)
Creates an instance with the given label, description, and command list. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||