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, undopublic static final UnexecutableCommand INSTANCE
public boolean canExecute()
false.canExecute in interface CommandcanExecute in class AbstractCommandfalse.public void execute()
java.lang.UnsupportedOperationException - always.public boolean canUndo()
false.canUndo in interface CommandcanUndo in class AbstractCommandfalse.public void redo()
java.lang.UnsupportedOperationException - always.Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature