org.eclipse.gmt.umlx.editor.commands
Class ChangeBoundsCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.eclipse.gmt.umlx.editor.command.AbstractCommand
          extended by org.eclipse.gmt.umlx.editor.commands.AbstractModelCommand<M>
              extended by org.eclipse.gmt.umlx.editor.commands.AbstractChangeCommand<GSheetNode>
                  extended by org.eclipse.gmt.umlx.editor.commands.ChangeBoundsCommand
All Implemented Interfaces:
IAbstractCommand

public class ChangeBoundsCommand
extends AbstractChangeCommand<GSheetNode>


Constructor Summary
ChangeBoundsCommand(GSheetNode model, org.eclipse.draw2d.geometry.Point newLocation, int newWidth)
           
 
Method Summary
 void doRedo()
          (re)-execute the command.
 void doUndo()
          un-execute the command.
 
Methods inherited from class org.eclipse.gmt.umlx.editor.commands.AbstractChangeCommand
addSelectedObjects
 
Methods inherited from class org.eclipse.gmt.umlx.editor.commands.AbstractModelCommand
getModel, toString
 
Methods inherited from class org.eclipse.gmt.umlx.editor.command.AbstractCommand
canExecute, canUndo, couldNotUnlock, diagnoseCannotExecute, dispose, execute, getCommand, prepare, prepare, redo, requestModification, undo
 
Methods inherited from class org.eclipse.gef.commands.Command
chain, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.command.IAbstractCommand
getLabel
 

Constructor Detail

ChangeBoundsCommand

public ChangeBoundsCommand(GSheetNode model,
                           org.eclipse.draw2d.geometry.Point newLocation,
                           int newWidth)
Method Detail

doRedo

public void doRedo()
Description copied from class: AbstractCommand
(re)-execute the command.


doUndo

public void doUndo()
Description copied from class: AbstractCommand
un-execute the command.