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

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

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

deletes a LinkableObject item. It also checks the surrogate note attached to it, and if this object is the note's only reference, deletes the note as well. Also, links between this object and other objects are deleted.

Author:
John Bradley

Field Summary
protected  Vector myFromLinks
           
protected  Vector myToLinks
           
 
Constructor Summary
DeleteLinkableObjectCommand(LinkableObject lo)
           
 
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
 

Field Detail

myToLinks

protected Vector myToLinks

myFromLinks

protected Vector myFromLinks
Constructor Detail

DeleteLinkableObjectCommand

public DeleteLinkableObjectCommand(LinkableObject lo)
Method Detail

execute

public void execute()

undo

public void undo()