fable.framework.ui.editors
Class ColumnFilePlotEditor
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
fable.framework.ui.editors.ColumnFilePlotEditor
- All Implemented Interfaces:
- IColumnFileEditor, java.util.EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.jface.util.IPropertyChangeListener, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.ISelectionListener, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation
public class ColumnFilePlotEditor
- extends org.eclipse.ui.part.EditorPart
- implements org.eclipse.ui.ISelectionListener, org.eclipse.jface.util.IPropertyChangeListener, IColumnFileEditor
ColumnFilePlotEditor will create a plot Editor for a columnFile.
A Columnfile is a file containing columns of data to plot in ASCII format.
Columnfiles are produced by Fable programs e.g. by ImageD11 and PolyXSim for
example.
- Author:
- Gaelle Suchet
Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
ColumnFilePlotEditor
public ColumnFilePlotEditor()
init
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
throws org.eclipse.ui.PartInitException
- Specified by:
init
in interface org.eclipse.ui.IEditorPart
- Specified by:
init
in class org.eclipse.ui.part.EditorPart
- Throws:
org.eclipse.ui.PartInitException
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
- Specified by:
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
setFocus
public void setFocus()
- Specified by:
setFocus
in interface org.eclipse.ui.IWorkbenchPart
- Specified by:
setFocus
in class org.eclipse.ui.part.WorkbenchPart
getxyPlot
public ColFileXYPlot getxyPlot()
- Returns:
- The ColFileXYPlot.
dispose
public void dispose()
- listen for property change events fired by the Column File since we use
an input for Editors
- Specified by:
dispose
in interface org.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in class org.eclipse.ui.part.WorkbenchPart
selectionChanged
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
- Specified by:
selectionChanged
in interface org.eclipse.ui.ISelectionListener
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
doSave
in interface org.eclipse.ui.ISaveablePart
- Specified by:
doSave
in class org.eclipse.ui.part.EditorPart
doSaveAs
public void doSaveAs()
- Specified by:
doSaveAs
in interface org.eclipse.ui.ISaveablePart
- Specified by:
doSaveAs
in class org.eclipse.ui.part.EditorPart
isDirty
public boolean isDirty()
- Specified by:
isDirty
in interface org.eclipse.ui.ISaveablePart
- Specified by:
isDirty
in class org.eclipse.ui.part.EditorPart
isSaveAsAllowed
public boolean isSaveAsAllowed()
- Specified by:
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
- Specified by:
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
getId
public static java.lang.String getId()
- Returns:
- unique id
isSaveOnCloseNeeded
public boolean isSaveOnCloseNeeded()
- Specified by:
isSaveOnCloseNeeded
in interface org.eclipse.ui.ISaveablePart
- Overrides:
isSaveOnCloseNeeded
in class org.eclipse.ui.part.EditorPart
propertyChange
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent arg0)
- Specified by:
propertyChange
in interface org.eclipse.jface.util.IPropertyChangeListener