org.eclipse.gmt.umlx.editor.property
Class EObjectListSelectionDialog<T>
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.ui.dialogs.SelectionDialog
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 classes/interfaces inherited from class org.eclipse.jface.window.Window |
org.eclipse.jface.window.Window.IExceptionHandler |
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 |
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 |
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
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 onimports
- imports to get resources fromtypeClass
- class from which offered Object types derivenullTypeElement
- selection for a blank input (may be named "")- See Also:
select(Object)
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()