uk.ac.kcl.cch.jb.pliny.actions
Class OpenBrowserForPlinyAction

java.lang.Object
  extended byuk.ac.kcl.cch.jb.pliny.actions.OpenBrowserForPlinyAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate

public class OpenBrowserForPlinyAction
extends Object
implements org.eclipse.ui.IWorkbenchWindowActionDelegate

This action supports the opening of the BrowserEditor (Pliny's integrated web browser).

Author:
John Bradley

Field Summary
static String BROWSER_ID
           
static String startupURL
           
 
Constructor Summary
OpenBrowserForPlinyAction()
           
 
Method Summary
 void dispose()
          Disposes this action delegate.
 void init(org.eclipse.ui.IWorkbenchWindow window)
          Initializes this action delegate with the workbench window it will work in.
 void run(org.eclipse.jface.action.IAction action)
          Performs the action of opening the Pliny web browser.
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
          Notifies this action delegate that the selection in the workbench has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BROWSER_ID

public static String BROWSER_ID

startupURL

public static final String startupURL
See Also:
Constant Field Values
Constructor Detail

OpenBrowserForPlinyAction

public OpenBrowserForPlinyAction()
Method Detail

dispose

public void dispose()
Disposes this action delegate. The implementor should unhook any references to itself so that garbage collection can occur.

Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate

init

public void init(org.eclipse.ui.IWorkbenchWindow window)
Initializes this action delegate with the workbench window it will work in.

Specified by:
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
Parameters:
window - the window that provides the context for this delegate

run

public void run(org.eclipse.jface.action.IAction action)
Performs the action of opening the Pliny web browser.

This method is called when the delegating action has been triggered. Implement this method to do the actual work.

Specified by:
run in interface org.eclipse.ui.IActionDelegate
Parameters:
action - the action proxy that handles the presentation portion of the action

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Notifies this action delegate that the selection in the workbench has changed. Nothing is done with this information here.

Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate
Parameters:
action - the action proxy that handles presentation portion of the action
selection - the current selection in the workbench