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

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

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

invoked by the ResourceExplorer's NewNoteWizard to create a new Note. The various NewNoteWizard UI options are provided as parameters to guide the creation.

Author:
John Bradley

Constructor Summary
ResourceExplorerNewNoteCommand(String newName, IResourceTreeView view, boolean addToFavourites, boolean makeReferent, Vector linktoList)
          creates an instance of this command with information to guide the note creation as parameters.
 
Method Summary
 void addLinktoList()
           
 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

ResourceExplorerNewNoteCommand

public ResourceExplorerNewNoteCommand(String newName,
                                      IResourceTreeView view,
                                      boolean addToFavourites,
                                      boolean makeReferent,
                                      Vector linktoList)
creates an instance of this command with information to guide the note creation as parameters.

Parameters:
newName - String name of new note to create
view - IResourceTreeView owning Eclipse ViewPart, needed to support opening of new note in the NoteEditor.
addToFavourites - boolean indicates whether new note should be also added to the Favourites (now called Bookmarks) or not.
makeReferent - indicates whether the new note should be set up as the current Referent or not.
linktoList - Vector list of Resources for which a LinkableObject reference object should be automatically created to link them to this new note.
Method Detail

addLinktoList

public void addLinktoList()

execute

public void execute()

undo

public void undo()