public class UnexecutableCommand extends AbstractCommand
INSTANCE
that cannot execute.AbstractCommand.NonDirtying
Modifier and Type | Field and Description |
---|---|
static UnexecutableCommand |
INSTANCE
The one instance of this object.
|
description, isExecutable, isPrepared, label
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Returns
false . |
boolean |
canUndo()
Returns
false . |
void |
execute()
Throws an exception if it should ever be called.
|
void |
redo()
Throws an exception if it should ever be called.
|
chain, dispose, getAffectedObjects, getDescription, getLabel, getResult, prepare, setDescription, setLabel, toString, undo
public static final UnexecutableCommand INSTANCE
public boolean canExecute()
false
.canExecute
in interface Command
canExecute
in class AbstractCommand
false
.public void execute()
java.lang.UnsupportedOperationException
- always.public boolean canUndo()
false
.canUndo
in interface Command
canUndo
in class AbstractCommand
false
.public void redo()
java.lang.UnsupportedOperationException
- always.