Class AtlResourceSelectionBox
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.emf.common.ui.dialogs.ResourceDialog
org.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog
org.eclipse.m2m.atl.adt.ui.common.AtlResourceSelectionBox
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class AtlResourceSelectionBox
extends org.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog
Provide dialogs to get EMF metamodels URIs or path. This class originally came from plugin
org.eclipse.emf.ecore.editor
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
-
Field Summary
Fields inherited from class org.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog
domain
Fields inherited from class org.eclipse.emf.common.ui.dialogs.ResourceDialog
context, CONTROL_OFFSET, style, title, uriField, uriText
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, 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, resizeHasOccurred
-
Constructor Summary
ConstructorsConstructorDescriptionAtlResourceSelectionBox
(org.eclipse.swt.widgets.Shell parent) Creates the dialogs. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.Control
createDialogArea
(org.eclipse.swt.widgets.Composite parent) Set<org.eclipse.emf.ecore.EPackage>
org.eclipse.swt.widgets.Shell
getShell()
protected boolean
isMulti()
protected boolean
processResource
(org.eclipse.emf.ecore.resource.Resource resource) void
Sets the dialog text.Methods inherited from class org.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog
processResources
Methods inherited from class org.eclipse.emf.common.ui.dialogs.ResourceDialog
configureShell, getURIs, isSave, normalizeStyle, okPressed, prepareBrowseFileSystemButton, prepareBrowseWorkspaceButton
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
AtlResourceSelectionBox
public AtlResourceSelectionBox(org.eclipse.swt.widgets.Shell parent) Creates the dialogs.- Parameters:
parent
- the parent shell
-
-
Method Details
-
processResource
protected boolean processResource(org.eclipse.emf.ecore.resource.Resource resource) - Overrides:
processResource
in classorg.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog
- See Also:
-
LoadResourceAction.LoadResourceDialog.processResource(org.eclipse.emf.ecore.resource.Resource)
-
getRegisteredPackages
-
createDialogArea
public org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogArea
in classorg.eclipse.emf.common.ui.dialogs.ResourceDialog
- See Also:
-
ResourceDialog.createDialogArea(org.eclipse.swt.widgets.Composite)
-
getURIText
- Overrides:
getURIText
in classorg.eclipse.emf.common.ui.dialogs.ResourceDialog
- See Also:
-
ResourceDialog.getURIText()
-
setText
Sets the dialog text.- Parameters:
text
- the text
-
getShell
public org.eclipse.swt.widgets.Shell getShell()- Specified by:
getShell
in interfaceorg.eclipse.jface.window.IShellProvider
- Overrides:
getShell
in classorg.eclipse.jface.window.Window
- See Also:
-
Window.getShell()
-
isMulti
protected boolean isMulti()- Overrides:
isMulti
in classorg.eclipse.emf.common.ui.dialogs.ResourceDialog
- See Also:
-
ResourceDialog.isMulti()
-