fable.framework.ui.actions
Class ColumnEditorAction
java.lang.Object
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
|
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 |
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
ColumnEditorAction
public ColumnEditorAction()
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 :
ColumnFileEditor
: a table that represents columnFile.
ColumnFilePlotEditor
: a plot that represents data in
table.
- 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()