| Package | Description |
|---|---|
| org.eclipse.emf.common.command |
Provides a framework for implementing and composing commands.
|
| Modifier and Type | Class and Description |
|---|---|
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. |
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Command> |
CompoundCommand.commandList
The list of subcommands.
|
protected java.util.List<Command> |
BasicCommandStack.commandList
The list of commands.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Command> |
CompoundCommand.getCommandList()
Returns an unmodifiable view of the commands in the list.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
| Constructor and Description |
|---|
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 and Description |
|---|
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.
|
Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature