fable.imageviewer.actions
Class OpenFileAction

java.lang.Object
  extended by fable.imageviewer.actions.OpenFileAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate

public class OpenFileAction
extends java.lang.Object
implements org.eclipse.ui.IWorkbenchWindowActionDelegate

Action to open image file(s) to display with the imageviewer. This class implements the IWorkbenchWindowAction so it can be added to menu bar via the Action extension point

Author:
Andy Gotz + Gaelle Suchet

Constructor Summary
OpenFileAction()
           
 
Method Summary
 void dispose()
           
 void init(org.eclipse.ui.IWorkbenchWindow window)
           
 void run(org.eclipse.jface.action.IAction action)
           
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenFileAction

public OpenFileAction()
Method Detail

run

public void run(org.eclipse.jface.action.IAction action)
Specified by:
run in interface org.eclipse.ui.IActionDelegate

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate

init

public void init(org.eclipse.ui.IWorkbenchWindow window)
Specified by:
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate