Package org.eclipse.emf.common.command
Class UnexecutableCommand
java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.UnexecutableCommand
- All Implemented Interfaces:
Command
A singleton
INSTANCE that cannot execute.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
AbstractCommand.NonDirtying -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UnexecutableCommandThe one instance of this object.Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label -
Method Summary
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
chain, dispose, getAffectedObjects, getDescription, getLabel, getResult, prepare, setDescription, setLabel, toString, undo
-
Field Details
-
INSTANCE
The one instance of this object.
-
-
Method Details
-
canExecute
public boolean canExecute()Returnsfalse.- Specified by:
canExecutein interfaceCommand- Overrides:
canExecutein classAbstractCommand- Returns:
false.
-
execute
public void execute()Throws an exception if it should ever be called.- Throws:
UnsupportedOperationException- always.
-
canUndo
public boolean canUndo()Returnsfalse.- Specified by:
canUndoin interfaceCommand- Overrides:
canUndoin classAbstractCommand- Returns:
false.
-
redo
public void redo()Throws an exception if it should ever be called.- Throws:
UnsupportedOperationException- always.
-