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

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

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

a command to take the given Resource and set it up as the current Referent.

Author:
John Bradley
See Also:
PlinyPlugin

Constructor Summary
SetReferentCommand(Resource resource)
          create instance of this command that will set the given resource up as the referent.
 
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

SetReferentCommand

public SetReferentCommand(Resource resource)
create instance of this command that will set the given resource up as the referent.

Parameters:
resource - Resource to be used as Referent.
Method Detail

execute

public void execute()

undo

public void undo()