Class XMLFileDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
uk.ac.gda.ui.dialog.OKCancelDialog
uk.ac.gda.client.experimentdefinition.components.XMLFileDialog
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
-
Field Summary
Fields inherited from class uk.ac.gda.ui.dialog.OKCancelDialog
currentSelection, ok -
Constructor Summary
ConstructorsConstructorDescriptionXMLFileDialog(org.eclipse.swt.widgets.Shell parent, Collection<IExperimentBeanDescription> exafsBeanDescriptions, String title, String info) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateUserUI(org.eclipse.swt.widgets.Shell shell, Object userObject) Please implement to create the GUI by adding UI to the shell.org.eclipse.core.resources.IFileThis specialisation requires userData to be an IFolder, or adaptable to one.org.eclipse.core.resources.IFileopen(org.eclipse.core.resources.IFolder userData) Methods inherited from class uk.ac.gda.ui.dialog.OKCancelDialog
dispose, openMethods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
-
Constructor Details
-
XMLFileDialog
public XMLFileDialog(org.eclipse.swt.widgets.Shell parent, Collection<IExperimentBeanDescription> exafsBeanDescriptions, String title, String info) - Parameters:
parent- shell to create dialog inexafsBeanDescriptions- list of descriptions to use to derive "invalid input: '<'New ...>" entries, ornullfor no "New"
-
-
Method Details
-
createUserUI
Description copied from class:OKCancelDialogPlease implement to create the GUI by adding UI to the shell. The shell already has a grid layout.- Specified by:
createUserUIin classOKCancelDialog- Parameters:
shell-userObject-
-
open
This specialisation requires userData to be an IFolder, or adaptable to one.- Overrides:
openin classOKCancelDialog- Parameters:
userData- (may be null)- Returns:
- the selected file
-
open
public org.eclipse.core.resources.IFile open(org.eclipse.core.resources.IFolder userData)
-