java.lang.Object
org.eclipse.swt.widgets.Dialog
uk.ac.gda.ui.dialog.OKCancelDialog
uk.ac.gda.client.experimentdefinition.components.XMLFileDialog

public final class XMLFileDialog extends OKCancelDialog
NOTE: The paradigm of <New... > in the file list is a confusing and bad one and not commonly used in user interfaces.

This chooser could do with quite a bit more work to make it obvious to the user how to change scan type.

Scan type can also be changed in the multi-scan perspective in the run editor. This has a drop down of available scan files and a right click menu able to create new ones.

See GDA-3433

  • Constructor Details

    • XMLFileDialog

      public XMLFileDialog(org.eclipse.swt.widgets.Shell parent, Collection<IExperimentBeanDescription> exafsBeanDescriptions, String title, String info)
      Parameters:
      parent - shell to create dialog in
      exafsBeanDescriptions - list of descriptions to use to derive "invalid input: '<'New ...>" entries, or null for no "New"
  • Method Details

    • createUserUI

      public void createUserUI(org.eclipse.swt.widgets.Shell shell, Object userObject)
      Description copied from class: OKCancelDialog
      Please implement to create the GUI by adding UI to the shell. The shell already has a grid layout.
      Specified by:
      createUserUI in class OKCancelDialog
      Parameters:
      shell -
      userObject -
    • open

      public org.eclipse.core.resources.IFile open(Object userData)
      This specialisation requires userData to be an IFolder, or adaptable to one.
      Overrides:
      open in class OKCancelDialog
      Parameters:
      userData - (may be null)
      Returns:
      the selected file
    • open

      public org.eclipse.core.resources.IFile open(org.eclipse.core.resources.IFolder userData)