Class XasScanParametersUIEditor

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
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
  • Constructor Details

  • Method Details

    • 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
    • drawLines

      public void drawLines()
    • linkUI

      public void linkUI(boolean isPageChange)
      Description copied from class: RichBeanEditorPart
      Extending classes should normally override this method with bounds and choice information and then call this method with super.linkUI();
      Overrides:
      linkUI in class ElementEdgeEditor
    • updatePlottedPoints

      public void updatePlottedPoints()
      Overrides:
      updatePlottedPoints in class ElementEdgeEditor
    • setPointsUpdate

      protected void setPointsUpdate(boolean isUpdate)
      Overrides:
      setPointsUpdate in class ElementEdgeEditor
    • updateElement

      protected void updateElement(ElementEdgeEditor.ELEMENT_EVENT_TYPE type)
      Overrides:
      updateElement in class ElementEdgeEditor
    • getLineLabels

      protected String[] getLineLabels()
      Description copied from class: ElementEdgeEditor
      Override to provide additional lines to the edge value.
      Overrides:
      getLineLabels in class ElementEdgeEditor
    • getLineValues

      protected double[] getLineValues()
      Description copied from class: ElementEdgeEditor
      Override to provide additional lines to the edge value.
      Overrides:
      getLineValues in class ElementEdgeEditor
    • getLineColours

      protected Color[] getLineColours()
      Description copied from class: ElementEdgeEditor
      Override to provide additional lines to the edge value.
      Overrides:
      getLineColours in class ElementEdgeEditor
    • getInitialEnergyFromElement

      protected double getInitialEnergyFromElement() throws Exception
      Throws:
      Exception
    • getFinalEnergyFromElement

      protected double getFinalEnergyFromElement() throws Exception
      Throws:
      Exception
    • getAfromElement

      protected double getAfromElement() throws Exception
      Throws:
      Exception
    • getBfromElement

      protected double getBfromElement() throws Exception
      Throws:
      Exception
    • getCfromElement

      protected double getCfromElement() throws Exception
      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:
      propertyChange in interface org.eclipse.jface.util.IPropertyChangeListener
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.ui.IWorkbenchPart
      Overrides:
      dispose in class ElementEdgeEditor
    • updateFromUIAndReturnEditingBean

      public Object updateFromUIAndReturnEditingBean() throws Exception
      Overrides:
      updateFromUIAndReturnEditingBean in class RichBeanEditorPart
      Returns:
      the editingBean
      Throws:
      Exception
    • fetchEditingBean

      protected Object fetchEditingBean()
      Overrides:
      fetchEditingBean in class ElementEdgeEditor
    • calcAorB

      protected Double calcAorB(double gaf)
    • calcC

      protected Double calcC(double gaf)
    • 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:
      setFocus in interface org.eclipse.ui.IWorkbenchPart
      Overrides:
      setFocus in class ElementEdgeEditor
    • getRichEditorTabText

      protected String getRichEditorTabText()
      Description copied from class: RichBeanEditorPart
      Return the name that the editor should be referred as in error messages and in the multi-editor view.
      Specified by:
      getRichEditorTabText in class RichBeanEditorPart
      Returns:
      string