Package uk.ac.gda.exafs.ui
Class XasScanParametersUIEditor
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
uk.ac.gda.richbeans.editors.RichBeanEditorPart
uk.ac.gda.exafs.ui.ElementEdgeEditor
uk.ac.gda.exafs.ui.XasScanParametersUIEditor
- All Implemented Interfaces:
EventListener,org.eclipse.core.runtime.IAdaptable,org.eclipse.core.runtime.IExecutableExtension,org.eclipse.jface.util.IPropertyChangeListener,org.eclipse.richbeans.api.event.ValueListener,org.eclipse.richbeans.api.widget.IFieldProvider,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 XasScanParametersUIEditor
extends ElementEdgeEditor
implements org.eclipse.jface.util.IPropertyChangeListener
An editor part designed to be a page in a multipage editor. This class was auto-generated using RCP Developer and
extends RichBeanEditorPart which provides the link between the editor and the bean. Only fields which implement
IFieldWidget will be synchronised with the bean automatically. Any field which is both an IFieldWidget and named the
same as a field in the bean will find its way into the bean and from the bean when the editor is opened.
SWTBot test: uk.ac.gda.exafs.ui.XasScanParametersUIEditorTest
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.ac.gda.exafs.ui.ElementEdgeEditor
ElementEdgeEditor.ELEMENT_EVENT_TYPE -
Field Summary
Fields inherited from class uk.ac.gda.exafs.ui.ElementEdgeEditor
container, edge, element, estimatePointsLabel, estimateTimeLabel, EXAFS_MAX_ELEMENT_PROP, EXAFS_MIN_ELEMENT_PROP, expandContainer, lastPlottedBean, plottingsystem, plottingsystemActionBarWrapper, plotUpdateJob, scrolledComposite, suspendGraphUpdate, updateValueAllowed, xAxisValuesFields inherited from class uk.ac.gda.richbeans.editors.RichBeanEditorPart
addedListenersAndSwitchedOn, controller, dirtyContainer, editingBean, expressionFields, mappingURL, path, previousUndoBean, undoableContextFields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUTFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionXasScanParametersUIEditor(String path, RichBeanMultiPageEditorPart containingEditor, XasScanParameters xasScanParameters) -
Method Summary
Modifier and TypeMethodDescriptionvoid_testSetGapChoice(int ichoice) Used during testing.void_testSetTimeType(int itype) protected DoublecalcAorB(double gaf) protected DoublecalcC(double gaf) protected doublecalcGaf1or2(double latestTargetValue) protected doublecalcGaf3(double latestTargetValue) voidcreatePartControl(org.eclipse.swt.widgets.Composite parent) voiddispose()voidprotected Objectorg.eclipse.richbeans.widgets.scalebox.ScaleBoxgetA()org.eclipse.richbeans.widgets.wrappers.ComboWrapperprotected doubleorg.eclipse.richbeans.widgets.scalebox.ScaleBoxgetB()protected doubleorg.eclipse.richbeans.widgets.scalebox.ScaleBoxgetC()protected doubleorg.eclipse.richbeans.widgets.scalebox.ScaleBoxorg.eclipse.richbeans.widgets.scalebox.ScaleBoxorg.eclipse.richbeans.widgets.scalebox.ScaleBoxorg.eclipse.richbeans.widgets.scalebox.ScaleBoxorg.eclipse.richbeans.widgets.wrappers.ComboWrapperorg.eclipse.richbeans.widgets.scalebox.ScaleBoxorg.eclipse.richbeans.widgets.wrappers.ComboWrapperorg.eclipse.richbeans.widgets.scalebox.ScaleBoxorg.eclipse.richbeans.widgets.scalebox.ScaleBoxprotected doubleorg.eclipse.richbeans.widgets.scalebox.ScaleBoxgetGaf1()org.eclipse.richbeans.widgets.scalebox.ScaleBoxgetGaf2()org.eclipse.richbeans.widgets.scalebox.ScaleBoxgetGaf3()org.eclipse.richbeans.widgets.scalebox.ScaleBoxprotected doubleorg.eclipse.richbeans.widgets.scalebox.ScaleBoxorg.eclipse.richbeans.widgets.scalebox.ScaleBoxprotected Color[]Override to provide additional lines to the edge value.protected String[]Override to provide additional lines to the edge value.protected double[]Override to provide additional lines to the edge value.org.eclipse.richbeans.widgets.scalebox.ScaleBoxorg.eclipse.richbeans.widgets.scalebox.ScaleBoxprotected StringReturn the name that the editor should be referred as in error messages and in the multi-editor view.voidlinkUI(boolean isPageChange) Extending classes should normally override this method with bounds and choice information and then call this method with super.linkUI();voidpropertyChange(org.eclipse.jface.util.PropertyChangeEvent event) voidsetFocus()protected voidsetPointsUpdate(boolean isUpdate) protected voidprotected voidprotected voidprotected voidprotected voidupdateKStart(boolean show) protected voidvoidMethods inherited from class uk.ac.gda.exafs.ui.ElementEdgeEditor
createElementEdgeArea, createEstimationComposite, getCoreHole, getEdge, getEdgeEnergy, getEdgeUseBean, getEdgeValue, getElement, getElementUseBean, getExpressionFields, getFieldValue, getMaxAllowedElemenetSymbol, getMinAllowedElementSymbol, getScanPoints, getSelectedElement, init, openPreferences, setupElementAndEdge, updateLayout, updatePointsLabelsMethods inherited from class uk.ac.gda.richbeans.editors.RichBeanEditorPart
addValueListener, beanToUI, createDataBindingController, doSave, doSaveAs, getEditorUI, getField, getIFile, getPath, getValueListenerName, isDirty, isDisposed, isSaveAsAllowed, isUndoStackActive, notifyFileSaved, recordUndoableEvent, setDisposed, setEditingBean, setInput, setPath, setUndoableContext, setUndoStackActive, switchState, uiToBean, updateUiFromOtherBean, valueChangePerformedMethods 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
-
XasScanParametersUIEditor
public XasScanParametersUIEditor(String path, RichBeanMultiPageEditorPart containingEditor, XasScanParameters xasScanParameters)
-
-
Method Details
-
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
-
drawLines
public void drawLines() -
linkUI
public void linkUI(boolean isPageChange) Description copied from class:RichBeanEditorPartExtending classes should normally override this method with bounds and choice information and then call this method with super.linkUI();- Overrides:
linkUIin classElementEdgeEditor
-
updatePlottedPoints
public void updatePlottedPoints()- Overrides:
updatePlottedPointsin classElementEdgeEditor
-
setPointsUpdate
protected void setPointsUpdate(boolean isUpdate) - Overrides:
setPointsUpdatein classElementEdgeEditor
-
updateElement
- Overrides:
updateElementin classElementEdgeEditor
-
getLineLabels
Description copied from class:ElementEdgeEditorOverride to provide additional lines to the edge value.- Overrides:
getLineLabelsin classElementEdgeEditor
-
getLineValues
protected double[] getLineValues()Description copied from class:ElementEdgeEditorOverride to provide additional lines to the edge value.- Overrides:
getLineValuesin classElementEdgeEditor
-
getLineColours
Description copied from class:ElementEdgeEditorOverride to provide additional lines to the edge value.- Overrides:
getLineColoursin classElementEdgeEditor
-
getInitialEnergyFromElement
- Throws:
Exception
-
getFinalEnergyFromElement
- Throws:
Exception
-
getAfromElement
- Throws:
Exception
-
getBfromElement
- Throws:
Exception
-
getCfromElement
- Throws:
Exception
-
updateEdgeRegion
protected void updateEdgeRegion() -
updateExafsStepType
protected void updateExafsStepType() -
updateKStart
protected void updateKStart(boolean show) -
updateKStartIfVisible
protected void updateKStartIfVisible() -
updateExafsTimeType
protected void updateExafsTimeType() -
_testSetGapChoice
public void _testSetGapChoice(int ichoice) Used during testing.- Parameters:
ichoice- 0 for AB for Gaf
-
_testSetTimeType
public void _testSetTimeType(int itype) -
propertyChange
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event) - Specified by:
propertyChangein interfaceorg.eclipse.jface.util.IPropertyChangeListener
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
disposein classElementEdgeEditor
-
updateFromUIAndReturnEditingBean
- Overrides:
updateFromUIAndReturnEditingBeanin classRichBeanEditorPart- Returns:
- the editingBean
- Throws:
Exception
-
fetchEditingBean
- Overrides:
fetchEditingBeanin classElementEdgeEditor
-
calcAorB
-
calcC
-
calcGaf1or2
protected double calcGaf1or2(double latestTargetValue) -
calcGaf3
protected double calcGaf3(double latestTargetValue) -
getExafsTimeType
public org.eclipse.richbeans.widgets.wrappers.ComboWrapper getExafsTimeType() -
getAbGafChoice
public org.eclipse.richbeans.widgets.wrappers.ComboWrapper getAbGafChoice() -
getFinalEnergy
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getFinalEnergy() -
getInitialEnergy
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getInitialEnergy() -
getPreEdgeStep
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getPreEdgeStep() -
getEdgeStep
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getEdgeStep() -
getEdgeTime
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getEdgeTime() -
getExafsStep
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getExafsStep() -
getExafsTime
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getExafsTime() -
getPreEdgeTime
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getPreEdgeTime() -
getA
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getA() -
getB
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getB() -
getC
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getC() -
getExafsStepType
public org.eclipse.richbeans.widgets.wrappers.ComboWrapper getExafsStepType() -
getGaf1
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getGaf1() -
getGaf2
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getGaf2() -
getGaf3
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getGaf3() -
getExafsFromTime
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getExafsFromTime() -
getExafsToTime
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getExafsToTime() -
getKWeighting
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getKWeighting() -
getKStart
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getKStart() -
setFocus
public void setFocus()- Specified by:
setFocusin interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
setFocusin classElementEdgeEditor
-
getRichEditorTabText
Description copied from class:RichBeanEditorPartReturn the name that the editor should be referred as in error messages and in the multi-editor view.- Specified by:
getRichEditorTabTextin classRichBeanEditorPart- Returns:
- string
-