Package uk.ac.gda.exafs.ui
Class XanesScanParametersUIEditor
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.XanesScanParametersUIEditor
- All Implemented Interfaces:
EventListener,org.eclipse.core.runtime.IAdaptable,org.eclipse.core.runtime.IExecutableExtension,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
An editor part designed to be a page in a multipage editor. This part can be entirely auto-generated and extends
RichBeanEditorPart which provides the link between the editor and the bean.
SWTBot test: uk.ac.gda.exafs.ui.XanesScanParametersUIEditorTest
-
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
ConstructorsConstructorDescriptionXanesScanParametersUIEditor(String path, RichBeanMultiPageEditorPart containingEditor, Object xanesScanParameters) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePartControl(org.eclipse.swt.widgets.Composite parent) Create contents of the editor partorg.eclipse.richbeans.widgets.scalebox.ScaleBoxprotected doubleprotected 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();voidsetDirty(boolean dirty) protected voidMethods inherited from class uk.ac.gda.exafs.ui.ElementEdgeEditor
createElementEdgeArea, createEstimationComposite, dispose, fetchEditingBean, getCoreHole, getEdge, getEdgeEnergy, getEdgeUseBean, getEdgeValue, getElement, getElementUseBean, getExpressionFields, getFieldValue, getLineColours, getLineLabels, getLineValues, getMaxAllowedElemenetSymbol, getMinAllowedElementSymbol, getScanPoints, getSelectedElement, init, openPreferences, setFocus, setPointsUpdate, setupElementAndEdge, updateLayout, updatePlottedPoints, 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, updateFromUIAndReturnEditingBean, 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
-
XanesScanParametersUIEditor
public XanesScanParametersUIEditor(String path, RichBeanMultiPageEditorPart containingEditor, Object xanesScanParameters) - Parameters:
path-containingEditor-xanesScanParameters-
-
-
Method Details
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent) Create contents of the editor part- Specified by:
createPartControlin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
createPartControlin classorg.eclipse.ui.part.WorkbenchPart- Parameters:
parent-
-
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
-
getFinalEnergyFromElement
- Throws:
Exception
-
updateElement
- Overrides:
updateElementin 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
-
getFinalEnergy
public org.eclipse.richbeans.widgets.scalebox.ScaleBox getFinalEnergy() -
setDirty
public void setDirty(boolean dirty)
-