Class EcoreCreateNewChildDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- org.eclipse.emfforms.internal.editor.ui.CreateNewChildDialog
-
- org.eclipse.emfforms.internal.editor.ecore.EcoreCreateNewChildDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class EcoreCreateNewChildDialog extends CreateNewChildDialog
Dialog which is shown when a new element is created in the ecore editor.- Author:
- Johannes Faltermeier
-
-
Field Summary
-
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 EcoreCreateNewChildDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, org.eclipse.emf.ecore.EObject parent, org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
Constructs a newEcoreCreateNewChildDialog
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<org.eclipse.jface.action.Action>
getNewChildActions(java.util.Collection<?> descriptors, org.eclipse.emf.edit.domain.EditingDomain domain, org.eclipse.emf.ecore.EObject eObject)
Creates all new child actions.-
Methods inherited from class org.eclipse.emfforms.internal.editor.ui.CreateNewChildDialog
configureShell, createButton, createButtonsForButtonBar, createDialogArea, getSelectionProvider, setShellStyle
-
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
-
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setWindowManager
-
-
-
-
Constructor Detail
-
EcoreCreateNewChildDialog
public EcoreCreateNewChildDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, org.eclipse.emf.ecore.EObject parent, org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
Constructs a newEcoreCreateNewChildDialog
.- Parameters:
parentShell
- the parent shelltitle
- the title of the dialogparent
- the parent EObject which will contain the new childselectionProvider
- a provider which gives access to the current selection
-
-
Method Detail
-
getNewChildActions
protected java.util.List<org.eclipse.jface.action.Action> getNewChildActions(java.util.Collection<?> descriptors, org.eclipse.emf.edit.domain.EditingDomain domain, org.eclipse.emf.ecore.EObject eObject)
Description copied from class:CreateNewChildDialog
Creates all new child actions.- Overrides:
getNewChildActions
in classCreateNewChildDialog
- Parameters:
descriptors
- the descriptorsdomain
- the domaineObject
- the e object- Returns:
- the list
-
-