public class AddCSVSeriesAction
extends org.eclipse.jface.action.Action
VizResource
in the VizFileViewer
.Constructor and Description |
---|
AddCSVSeriesAction(org.eclipse.ui.part.ViewPart parentView,
AddCSVPlotAction parentAction)
The constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addSeriesFromFile(org.eclipse.swt.widgets.Shell shell,
PlotProvider plotToAddSeries,
ICEResource resource)
Add a series to the selected
PlotProvider in the
CSVPlotViewer from the selected file in the VizFileViewer |
void |
addSeriesFromFileSet(org.eclipse.swt.widgets.Shell shell,
PlotProvider plotToAddSeries,
VizResource resource)
Add a series to the selected
PlotProvider in the
CSVPlotViewer from the selected file set in the
VizFileViewer . |
void |
run()
The function called whenever the action is clicked.
|
void |
setIndependentVar(org.eclipse.swt.widgets.Shell shell,
CSVDataProvider newDataProvider)
This operation presents the user with a dialog to select the independent
variable for the series.
|
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
addPropertyChangeListener, removePropertyChangeListener
public AddCSVSeriesAction(org.eclipse.ui.part.ViewPart parentView, AddCSVPlotAction parentAction)
parentView
- The ViewPart to whom the object of this class belongs.parentAction
- The AddFileAction to whom the object of this class belongs.public void run()
run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.jface.action.Action
public void addSeriesFromFile(org.eclipse.swt.widgets.Shell shell, PlotProvider plotToAddSeries, ICEResource resource)
PlotProvider
in the
CSVPlotViewer
from the selected file in the VizFileViewer
shell
- The Shell containing the workbench used to host Dialogs.plotToAddSeries
- The PlotProvider to add the series to.resource
- The file selected in the VizFileViewer to pull the plot from.public void addSeriesFromFileSet(org.eclipse.swt.widgets.Shell shell, PlotProvider plotToAddSeries, VizResource resource)
PlotProvider
in the
CSVPlotViewer
from the selected file set in the
VizFileViewer
.shell
- The Shell containing the workbench used to host Dialogs.plotToAddSeries
- The PlotProvider to add the series to.resource
- The file set selected in the VizFileViewer to pull the plot
from.public void setIndependentVar(org.eclipse.swt.widgets.Shell shell, CSVDataProvider newDataProvider)
shell
- The Shell containing the workbench used here to host the
dialog.newDataProvider
- The CSVDataProvider to set the independent variable for.