uk.ac.kcl.cch.jb.pliny.commands
Class ResourceExplorerNewNoteCommand
java.lang.Object
org.eclipse.gef.commands.Command
uk.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
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 |
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 createview
- 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.
addLinktoList
public void addLinktoList()
execute
public void execute()
undo
public void undo()