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.LoadResourceDialogProvide dialogs to get EMF metamodels URIs or path. This class originally came from pluginorg.eclipse.emf.ecore.editor.
-
-
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
-
-
Constructor Summary
Constructors Constructor Description AtlResourceSelectionBox(org.eclipse.swt.widgets.Shell parent)Creates the dialogs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent)java.util.Set<org.eclipse.emf.ecore.EPackage>getRegisteredPackages()org.eclipse.swt.widgets.ShellgetShell()java.lang.StringgetURIText()protected booleanisMulti()protected booleanprocessResource(org.eclipse.emf.ecore.resource.Resource resource)voidsetText(java.lang.String text)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
-
-
-
-
Method Detail
-
processResource
protected boolean processResource(org.eclipse.emf.ecore.resource.Resource resource)
- Overrides:
processResourcein classorg.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog- See Also:
LoadResourceAction.LoadResourceDialog.processResource(org.eclipse.emf.ecore.resource.Resource)
-
getRegisteredPackages
public java.util.Set<org.eclipse.emf.ecore.EPackage> getRegisteredPackages()
-
createDialogArea
public org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogAreain classorg.eclipse.emf.common.ui.dialogs.ResourceDialog- See Also:
ResourceDialog.createDialogArea(org.eclipse.swt.widgets.Composite)
-
getURIText
public java.lang.String getURIText()
- Overrides:
getURITextin classorg.eclipse.emf.common.ui.dialogs.ResourceDialog- See Also:
ResourceDialog.getURIText()
-
setText
public void setText(java.lang.String text)
Sets the dialog text.- Parameters:
text- the text
-
getShell
public org.eclipse.swt.widgets.Shell getShell()
- Specified by:
getShellin interfaceorg.eclipse.jface.window.IShellProvider- Overrides:
getShellin classorg.eclipse.jface.window.Window- See Also:
Window.getShell()
-
isMulti
protected boolean isMulti()
- Overrides:
isMultiin classorg.eclipse.emf.common.ui.dialogs.ResourceDialog- See Also:
ResourceDialog.isMulti()
-
-