Package org.dawb.workbench.ui.editors
Class CSVDataEditor
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.dawb.workbench.ui.editors.CSVDataEditor
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,org.eclipse.core.runtime.IExecutableExtension,org.eclipse.jface.dialogs.IPageChangedListener,org.eclipse.ui.IEditorPart,org.eclipse.ui.IReusableEditor,org.eclipse.ui.ISaveablePart,org.eclipse.ui.IWorkbenchPart,org.eclipse.ui.IWorkbenchPart2,org.eclipse.ui.IWorkbenchPart3,org.eclipse.ui.part.IWorkbenchPartOrientation
public class CSVDataEditor
extends org.eclipse.ui.part.EditorPart
implements org.eclipse.ui.IReusableEditor, org.eclipse.jface.dialogs.IPageChangedListener
An editor which shows the current data sets plotted in a table.
This may be needed if the scientist has manipulated the data and would like to view it or export it.
-
Field Summary
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUTFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePartControl(org.eclipse.swt.widgets.Composite parent) voiddispose()voiddoSave(org.eclipse.core.runtime.IProgressMonitor monitor) voiddoSaveAs()protected org.dawb.workbench.ui.editors.CSVDataEditor.RowObject[]getRowData(Collection<org.eclipse.january.dataset.IDataset> sets) The data sets are the columns, we need an array of the rows to work best with TableViewer.voidinit(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) booleanisDirty()booleanvoidpageChanged(org.eclipse.jface.dialogs.PageChangedEvent event) voidsetDataProvider(ISlicablePlottingPart dataHolder) voidsetFocus()voidsetInput(org.eclipse.ui.IEditorInput input) Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInputWithNotify, setPartNameMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.ui.IEditorPart
getEditorInput, getEditorSiteMethods inherited from interface org.eclipse.ui.ISaveablePart
isSaveOnCloseNeededMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Constructor Details
-
CSVDataEditor
public CSVDataEditor()
-
-
Method Details
-
setDataProvider
-
init
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) throws org.eclipse.ui.PartInitException - Specified by:
initin interfaceorg.eclipse.ui.IEditorPart- Specified by:
initin classorg.eclipse.ui.part.EditorPart- Throws:
org.eclipse.ui.PartInitException
-
isDirty
public boolean isDirty()- Specified by:
isDirtyin interfaceorg.eclipse.ui.ISaveablePart- Specified by:
isDirtyin classorg.eclipse.ui.part.EditorPart
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createPartControlin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
createPartControlin classorg.eclipse.ui.part.WorkbenchPart
-
getRowData
protected org.dawb.workbench.ui.editors.CSVDataEditor.RowObject[] getRowData(Collection<org.eclipse.january.dataset.IDataset> sets) The data sets are the columns, we need an array of the rows to work best with TableViewer.- Parameters:
sets-- Returns:
- an array of RowObjects
-
setInput
public void setInput(org.eclipse.ui.IEditorInput input) - Specified by:
setInputin interfaceorg.eclipse.ui.IReusableEditor- Overrides:
setInputin classorg.eclipse.ui.part.EditorPart
-
setFocus
public void setFocus()- Specified by:
setFocusin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
setFocusin classorg.eclipse.ui.part.WorkbenchPart
-
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
doSavein interfaceorg.eclipse.ui.ISaveablePart- Specified by:
doSavein classorg.eclipse.ui.part.EditorPart
-
doSaveAs
public void doSaveAs()- Specified by:
doSaveAsin interfaceorg.eclipse.ui.ISaveablePart- Specified by:
doSaveAsin classorg.eclipse.ui.part.EditorPart
-
isSaveAsAllowed
public boolean isSaveAsAllowed()- Specified by:
isSaveAsAllowedin interfaceorg.eclipse.ui.ISaveablePart- Specified by:
isSaveAsAllowedin classorg.eclipse.ui.part.EditorPart
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
disposein classorg.eclipse.ui.part.WorkbenchPart
-
pageChanged
public void pageChanged(org.eclipse.jface.dialogs.PageChangedEvent event) - Specified by:
pageChangedin interfaceorg.eclipse.jface.dialogs.IPageChangedListener
-