org.eclipse.gmt.umlx.editor.property
Class EObjectListSelectionDialog<T>

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.jface.dialogs.TrayDialog
              extended by org.eclipse.ui.dialogs.SelectionDialog
                  extended by org.eclipse.gmt.umlx.editor.property.EObjectListSelectionDialog<T>
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class EObjectListSelectionDialog<T>
extends org.eclipse.ui.dialogs.SelectionDialog

Shows a list of Ecore resources to the user with a text entry field for a string pattern used to filter the list of resources. The Ecore resources are identified as all contents in a ResourceSet that have a required Ecore base class.

Since:
2.1

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
static java.lang.String ELEMENT_SELECTION_LABEL
           
static java.lang.String ELEMENT_SELECTION_MATCHING
           
static java.lang.String ELEMENT_SELECTION_PATH
           
static java.lang.String ELEMENT_SELECTION_TITLE
           
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
EObjectListSelectionDialog(org.eclipse.swt.widgets.Shell parentShell, IDomainProvider<T> domainProvider)
          Creates a new instance of the class.
 
Method Summary
 boolean close()
           
 void create()
           
 T getFirstResult()
           
 
Methods inherited from class org.eclipse.ui.dialogs.SelectionDialog
getOkButton, getResult, setDialogBoundsSettings, setInitialElementSelections, setInitialSelections, setMessage, setTitle
 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getBlockedHandler, getImage, setBlockedHandler, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_SELECTION_TITLE

public static final java.lang.String ELEMENT_SELECTION_TITLE
See Also:
Constant Field Values

ELEMENT_SELECTION_LABEL

public static final java.lang.String ELEMENT_SELECTION_LABEL
See Also:
Constant Field Values

ELEMENT_SELECTION_MATCHING

public static final java.lang.String ELEMENT_SELECTION_MATCHING
See Also:
Constant Field Values

ELEMENT_SELECTION_PATH

public static final java.lang.String ELEMENT_SELECTION_PATH
See Also:
Constant Field Values
Constructor Detail

EObjectListSelectionDialog

public EObjectListSelectionDialog(org.eclipse.swt.widgets.Shell parentShell,
                                  IDomainProvider<T> domainProvider)
Creates a new instance of the class. When this constructor is used to create the dialog, resources will be gathered dynamically as the pattern string is specified. Only resources of the given types that match the pattern string will be listed. To further filter the matching resources,

Parameters:
parentShell - shell to parent the dialog on
imports - imports to get resources from
typeClass - class from which offered Object types derive
nullTypeElement - selection for a blank input (may be named "")
See Also:
select(Object)
Method Detail

close

public boolean close()
Overrides:
close in class org.eclipse.jface.dialogs.Dialog
See Also:
Window.close()

create

public void create()
Overrides:
create in class org.eclipse.jface.dialogs.Dialog
See Also:
Window.create()

getFirstResult

public T getFirstResult()