| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.IdentityCommand
A command that always produces the same result.
Nested Class Summary |
Nested classes inherited from class org.eclipse.emf.common.command.AbstractCommand |
AbstractCommand.NonDirtying |
Field Summary | |
static IdentityCommand | INSTANCE
An empty instance of this object. |
protected Collection | result
Keeps track of the result returned from getResult(). |
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
description, isExecutable, isPrepared, label |
Constructor Summary | |
IdentityCommand()
Creates an empty instance. | |
IdentityCommand(Collection result)
Creates an instance with the given result collection. | |
IdentityCommand(Object result)
Creates an instance with a result collection containing the given result object. | |
IdentityCommand(String label)
Creates an instance with the given label. | |
IdentityCommand(String label,
Collection result)
Creates an instance with the given label the result collection. | |
IdentityCommand(String label,
Object result)
Creates an instance with the given label and a result collection containing the given result object. | |
IdentityCommand(String label,
String description)
Creates an instance with the given label and description. | |
IdentityCommand(String label,
String description,
Collection result)
Creates an instance with the given label, description, result collection. | |
IdentityCommand(String label,
String description,
Object result)
Creates an instance with the given label, description, and a result collection containing the given result object. |
Method Summary | |
boolean | canExecute()
Returns true. |
void | execute()
Do nothing. |
String | getDescription()
Returns a string suitable to help describe the effect of this command. |
String | getLabel()
Returns a string suitable to represent the label that identifies this command. |
Collection | getResult()
Return the identity result. |
void | redo()
Do nothing. |
void | undo()
Do nothing. |
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand |
canUndo, chain, dispose, getAffectedObjects, prepare, setDescription, setLabel, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final IdentityCommand INSTANCE
protected Collection result
Constructor Detail |
public IdentityCommand()
public IdentityCommand(Object result)
public IdentityCommand(Collection result)
public IdentityCommand(String label)
public IdentityCommand(String label, Object result)
public IdentityCommand(String label, Collection result)
public IdentityCommand(String label, String description)
public IdentityCommand(String label, String description, Object result)
public IdentityCommand(String label, String description, Collection result)
Method Detail |
public boolean canExecute()
public void execute()
public void undo()
public void redo()
public String getLabel()
public String getDescription()
public Collection getResult()
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |