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

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

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

command to set all the provided items to a specified LOType.

Author:
John Bradley

Constructor Summary
SetItemsToTypeCommand(Vector items, LOType newType)
          creates an instance of this command and provides the list of items (all of which must be IHasLoTypes -- LinkableObjects or Links -- to be changed to the provide LOType.
 
Method Summary
 void execute()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetItemsToTypeCommand

public SetItemsToTypeCommand(Vector items,
                             LOType newType)
creates an instance of this command and provides the list of items (all of which must be IHasLoTypes -- LinkableObjects or Links -- to be changed to the provide LOType.

Parameters:
items - Vector of items to be assigned the new type.
newType - LOType new type to assign them to.
Method Detail

execute

public void execute()

undo

public void undo()

redo

public void redo()