Class CreateNewChildDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- org.eclipse.emfforms.internal.editor.ui.CreateNewChildDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
- Direct Known Subclasses:
EcoreCreateNewChildDialog
public class CreateNewChildDialog extends org.eclipse.jface.dialogs.DialogThe Class CreateNewChildDialog. It shows the small dialog asking the user to select the type of the newly created element
-
-
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 CreateNewChildDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, org.eclipse.emf.ecore.EObject parent, org.eclipse.jface.viewers.ISelectionProvider selectionProvider)Instantiates a new creates the new child dialog.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureShell(org.eclipse.swt.widgets.Shell newShell)protected org.eclipse.swt.widgets.ButtoncreateButton(org.eclipse.swt.widgets.Composite parent, int id, java.lang.String label, boolean defaultButton)protected voidcreateButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parentComposite)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.protected org.eclipse.jface.viewers.ISelectionProvidergetSelectionProvider()Returns the selection provider.protected voidsetShellStyle(int newShellStyle)-
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
-
CreateNewChildDialog
public CreateNewChildDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, org.eclipse.emf.ecore.EObject parent, org.eclipse.jface.viewers.ISelectionProvider selectionProvider)Instantiates a new creates the new child dialog.- Parameters:
parentShell- the parent shelltitle- the titleparent- the parentselectionProvider- the selection provider
-
-
Method Detail
-
getSelectionProvider
protected final org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()
Returns the selection provider.- Returns:
- the selection provider
-
setShellStyle
protected void setShellStyle(int newShellStyle)
- Overrides:
setShellStylein classorg.eclipse.jface.window.Window
-
createButton
protected org.eclipse.swt.widgets.Button createButton(org.eclipse.swt.widgets.Composite parent, int id, java.lang.String label, boolean defaultButton)- Overrides:
createButtonin classorg.eclipse.jface.dialogs.Dialog
-
createButtonsForButtonBar
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createButtonsForButtonBarin classorg.eclipse.jface.dialogs.Dialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
- Overrides:
configureShellin classorg.eclipse.jface.window.Window
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parentComposite)
- Overrides:
createDialogAreain classorg.eclipse.jface.dialogs.Dialog
-
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)Creates all new child actions.- Parameters:
descriptors- the descriptorsdomain- the domaineObject- the e object- Returns:
- the list
-
-