fable.framework.ui.actions
Class ColumnEditorAction

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

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

This class opens two editors for a Column File :
- ColumnFileEditor
- ColumnFilePlotEditor This action is available fron Menu Peaksearch/Opens filtered peaks file.

Author:
SUCHET

Field Summary
static java.lang.String ID
           
 
Constructor Summary
ColumnEditorAction()
           
 
Method Summary
 void dispose()
           
 org.eclipse.swt.widgets.Display getDisplay()
           
 void init(org.eclipse.ui.IWorkbenchWindow window)
           
static void openEditors(org.eclipse.ui.IEditorInput input, org.eclipse.ui.IWorkbenchPage page)
          Tries to open a ColumnFileEditor or ColumnFilePlotEditor on the given IEditorInput on the given IWorkbenchPage.
 void run(org.eclipse.jface.action.IAction action)
          This method opens a file selector to choose a "Column File", that means, a file that contains columns of data.
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
           
 void setDisplay(org.eclipse.swt.widgets.Display display)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

ColumnEditorAction

public ColumnEditorAction()
Method Detail

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

run

public void run(org.eclipse.jface.action.IAction action)
This method opens a file selector to choose a "Column File", that means, a file that contains columns of data. It opens two editors with the same input file :

Specified by:
run in interface org.eclipse.ui.IActionDelegate

openEditors

public static void openEditors(org.eclipse.ui.IEditorInput input,
                               org.eclipse.ui.IWorkbenchPage page)
Tries to open a ColumnFileEditor or ColumnFilePlotEditor on the given IEditorInput on the given IWorkbenchPage.

Parameters:
input -
page -

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

setDisplay

public void setDisplay(org.eclipse.swt.widgets.Display display)

getDisplay

public org.eclipse.swt.widgets.Display getDisplay()