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

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

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

This command creates a new Favourites item (now called Bookmark in the UI) that points to a given Resource. This command is invoked through the Resource Explorer's AddToFavouritesAction

Author:
John Bradley

Constructor Summary
AddToFavouritesCommand(Resource resource)
          creates a command to add the given resource as a favourite (UI now calls them "Bookmark").
 
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

AddToFavouritesCommand

public AddToFavouritesCommand(Resource resource)
creates a command to add the given resource as a favourite (UI now calls them "Bookmark").

Parameters:
resource - Resource to be added
Method Detail

execute

public void execute()

undo

public void undo()