uk.ac.kcl.cch.jb.pliny.commands
Class CutObjectsCommand

java.lang.Object
  extended byorg.eclipse.gef.commands.Command
      extended byuk.ac.kcl.cch.jb.pliny.commands.CutObjectsCommand

public class CutObjectsCommand
extends org.eclipse.gef.commands.Command

This command supports the use of the "cut" operation within a reference/annotation area.

Author:
John Bradley

Constructor Summary
CutObjectsCommand(List items)
          constructor for the Cut command.
 
Method Summary
 void execute()
           
 void undo()
           
 
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

CutObjectsCommand

public CutObjectsCommand(List items)
constructor for the Cut command. The list it is passed must contain GEF AbstractEditParts of objects to be cut,a and the parts an be references to model items Links or LinkableObjects.

Parameters:
items - List of AbstractEditParts referring to items to be cut.
Method Detail

execute

public void execute()

undo

public void undo()