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

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

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

used as a part of a compound command created by ResourceObjectsXYLayoutPolicy.getAddCommand(org.eclipse.gef.Request) to handle all Links between a set of LinkableObjects that are involved in a move from one display resource to another.

Author:
John Bradley

Constructor Summary
FixupLinksCommand(Set linkableObjects)
          sets of this command to process the LinkableObjects contained within the given Set.
 
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

FixupLinksCommand

public FixupLinksCommand(Set linkableObjects)
sets of this command to process the LinkableObjects contained within the given Set. The set is assumed to contain Linkable Objects only.

Parameters:
linkableObjects - set of LinkableObjects to work with.
Method Detail

execute

public void execute()

undo

public void undo()

redo

public void redo()