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

public class UnexecutableCommand
extends AbstractCommand

A singleton INSTANCE that cannot execute.


Field Summary
static UnexecutableCommand INSTANCE
          The one instance of this object.
 
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
 
Method Summary
 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.
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
chain, dispose, getAffectedObjects, getDescription, getLabel, getResult, prepare, setDescription, setLabel, toString, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final UnexecutableCommand INSTANCE
The one instance of this object.
Method Detail

canExecute

public boolean canExecute()
Returns false.
Overrides:
canExecute in class AbstractCommand
Returns:
false.

execute

public void execute()
Throws an exception if it should ever be called.
Throws:
UnsupportedOperationException - always.

canUndo

public boolean canUndo()
Returns false.
Overrides:
canUndo in class AbstractCommand
Returns:
false.

redo

public void redo()
Throws an exception if it should ever be called.
Throws:
UnsupportedOperationException - always.

Copyright 2001-2002 IBM Corporation and others.
All Rights Reserved.