net.officefloor.eclipse.common.commands
Class OfficeFloorCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by net.officefloor.eclipse.common.commands.OfficeFloorCommand
Direct Known Subclasses:
ChangeCommand

public abstract class OfficeFloorCommand
extends org.eclipse.gef.commands.Command

Office Floor Command.

Author:
Daniel Sagenschneider

Constructor Summary
OfficeFloorCommand()
          Default constructor to default details from class type.
OfficeFloorCommand(String label)
          Initiate.
 
Method Summary
protected abstract  void doCommand()
          Provides implementation of executing the Command.
 void execute()
           
 void undo()
           
protected abstract  void undoCommand()
          Provides implementation of undoing the Command.
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfficeFloorCommand

public OfficeFloorCommand()
Default constructor to default details from class type.


OfficeFloorCommand

public OfficeFloorCommand(String label)
Initiate.

Parameters:
label - Label for the command.
Method Detail

execute

public final void execute()
Overrides:
execute in class org.eclipse.gef.commands.Command

doCommand

protected abstract void doCommand()
Provides implementation of executing the Command.


undo

public final void undo()
Overrides:
undo in class org.eclipse.gef.commands.Command

undoCommand

protected abstract void undoCommand()
Provides implementation of undoing the Command.



Copyright © 2005-2013. All Rights Reserved.