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
domainFields inherited from class org.eclipse.emf.common.ui.dialogs.ResourceDialog
context, CONTROL_OFFSET, style, title, uriField, uriTextFields 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, ELLIPSISFields 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.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent) Set<org.eclipse.emf.ecore.EPackage> org.eclipse.swt.widgets.ShellgetShell()protected booleanisMulti()protected booleanprocessResource(org.eclipse.emf.ecore.resource.Resource resource) voidSets the dialog text.Methods inherited from class org.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog
processResourcesMethods inherited from class org.eclipse.emf.common.ui.dialogs.ResourceDialog
configureShell, getURIs, isSave, normalizeStyle, okPressed, prepareBrowseFileSystemButton, prepareBrowseWorkspaceButtonMethods 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, shortenTextMethods 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:
processResourcein classorg.eclipse.emf.edit.ui.action.LoadResourceAction.LoadResourceDialog- See Also:
-
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:
-
getURIText
- Overrides:
getURITextin classorg.eclipse.emf.common.ui.dialogs.ResourceDialog- See Also:
-
setText
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:
-
isMulti
protected boolean isMulti()- Overrides:
isMultiin classorg.eclipse.emf.common.ui.dialogs.ResourceDialog- See Also:
-