Uses of Interface
org.eclipse.emf.common.command.Command
Packages that use Command
Package
Description
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 CommandModifier and TypeClassDescriptionclassAn abstract implementation of a basic command.classA command that wraps another command.classA command that comprises a sequence of subcommands.classA command that always produces the same result.classA composite command which assumes that later commands in the list may depend on the results and side-effects of earlier commands in the list.classA singletonUnexecutableCommand.INSTANCEthat cannot execute.Fields in org.eclipse.emf.common.command declared as CommandModifier and TypeFieldDescriptionprotected CommandCommandWrapper.commandThe command for which this is a proxy or decorator.protected CommandBasicCommandStack.mostRecentCommandThe command most recently executed, undone, or redone.Fields in org.eclipse.emf.common.command with type parameters of type CommandModifier and TypeFieldDescriptionBasicCommandStack.commandListThe list of commands.CompoundCommand.commandListThe list of subcommands.Methods in org.eclipse.emf.common.command that return CommandModifier and TypeMethodDescriptionCreates a new compound command, containing this command and the given command, that delegates chain toCompoundCommand.append(org.eclipse.emf.common.command.Command).Returns a command that represents the composition of this command with the given command.protected CommandCommandWrapper.createCommand()Create the command being proxied.CommandWrapper.getCommand()Returns the command for which this is a proxy or decorator.BasicCommandStack.getMostRecentCommand()CommandStack.getMostRecentCommand()Returns the command most recently executed, undone, or redone.BasicCommandStack.getRedoCommand()CommandStack.getRedoCommand()Returns the command that will be redone ifCommandStack.redo()is called.BasicCommandStack.getUndoCommand()CommandStack.getUndoCommand()Returns the command that will be undone ifCommandStack.undo()is called.CompoundCommand.unwrap()Returns one of three things:UnexecutableCommand.INSTANCE, if there are no commands, the one command, if there is exactly one command, orthis, if there are multiple commands; this command isCompoundCommand.dispose()d in the first two cases.Methods in org.eclipse.emf.common.command that return types with arguments of type CommandModifier and TypeMethodDescriptionCompoundCommand.getCommandList()Returns an unmodifiable view of the commands in the list.Methods in org.eclipse.emf.common.command with parameters of type CommandModifier and TypeMethodDescriptionvoidAdds a command to this compound command's list of commands.booleanCompoundCommand.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.booleanStrictCompoundCommand.appendAndExecute(Command command) Checks if the command can execute; if so, it is executed, appended to the list, andtrueis returned, if not, it is just disposed andfalseis returned.booleanCompoundCommand.appendIfCanExecute(Command command) Adds a command to this compound command's the list of commands and returnstrue, ifcommand.returns true; otherwise, it simply callscanExecute()command.and returnsdispose()false.Creates a new compound command, containing this command and the given command, that delegates chain toCompoundCommand.append(org.eclipse.emf.common.command.Command).Returns a command that represents the composition of this command with the given command.voidvoidClears any redoable commands not yet redone, adds the command, and then executes the command.Constructors in org.eclipse.emf.common.command with parameters of type CommandModifierConstructorDescriptionCommandWrapper(String label, String description, Command command) Creates a decorator instance with the given label and description for the given command.protectedCommandWrapper(String label, Command command) Creates a decorator instance with the given label for the given command.CommandWrapper(Command command) Creates a decorator instance for the given command.Constructor parameters in org.eclipse.emf.common.command with type arguments of type CommandModifierConstructorDescriptionCompoundCommand(int resultIndex, String label, String description, List<Command> commandList) Creates an instance with the given result index, label, description, and list.CompoundCommand(int resultIndex, String label, List<Command> commandList) Creates an instance with the given resultIndex, label, and list.CompoundCommand(int resultIndex, List<Command> commandList) Creates an instance with the given result index and list.CompoundCommand(String label, String description, List<Command> commandList) Creates an instance with the given label, description, and list.CompoundCommand(String label, List<Command> commandList) Creates instance with the given label and list.CompoundCommand(List<Command> commandList) Creates an instance with the given list.StrictCompoundCommand(String label, String description, List<Command> commandList) Creates an instance with the given label, description, and command list.StrictCompoundCommand(String label, List<Command> commandList) Creates an instance with the given label and command list.StrictCompoundCommand(List<Command> commandList) Creates an instance with the given command list.