|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A self-composing undoable operation that has a CommandResult and a
list of affected IFiles.
Executing, undoing or redoing a command can have a result which clients can
obtain by using the ICommand.getCommandResult() method. For example,
executing a command that create a new entity may wish to make the new entity
accessible to clients through the ICommand.getCommandResult() method.
The command provides a list of IFiles that are expected to be
modified when the it is executed, undone or redone. An
IOperationApprover is registered with the
OperationHistoryFactory.getOperationHistory() to validate the
modification to these resources.
If an error occurs, or the progress monitor is canceled during execute, undo or redo, the command should make every effort to roll back the changes it has made up to that point.
| Method Summary | |
ICommand |
compose(IUndoableOperation operation)
Returns a new command object that represents a composition of this command with the specified command parameter. |
java.util.List |
getAffectedFiles()
Returns the list of IFiles that are expected to be modified by
this command. |
CommandResult |
getCommandResult()
Retrieves the result of executing, undoing, or redoing this command, depending on which of these operations was last performed. |
ICommand |
reduce()
Returns the simplest form of this command that is equivalent. |
| Methods inherited from interface org.eclipse.core.commands.operations.IUndoableOperation |
addContext, canExecute, canRedo, canUndo, dispose, execute, getContexts, getLabel, hasContext, redo, removeContext, undo |
| Method Detail |
public CommandResult getCommandResult()
null if the operation has no meaningful result.
The value of this result is undefined if the command has not yet been executed, undone or redone.
public java.util.List getAffectedFiles()
IFiles that are expected to be modified by
this command.
IFiles that will be modifiedpublic ICommand compose(IUndoableOperation operation)
command parameter.
operation - The operation that is to be composed with this command.
public ICommand reduce()
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.