Class CreateNewChildDialog

  • All Implemented Interfaces:
    org.eclipse.jface.window.IShellProvider
    Direct Known Subclasses:
    EcoreCreateNewChildDialog

    public class CreateNewChildDialog
    extends org.eclipse.jface.dialogs.Dialog
    The Class CreateNewChildDialog. It shows the small dialog asking the user to select the type of the newly created element
    • 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.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

      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 void configureShell​(org.eclipse.swt.widgets.Shell newShell)  
      protected org.eclipse.swt.widgets.Button createButton​(org.eclipse.swt.widgets.Composite parent, int id, java.lang.String label, boolean defaultButton)  
      protected void createButtonsForButtonBar​(org.eclipse.swt.widgets.Composite parent)  
      protected org.eclipse.swt.widgets.Control createDialogArea​(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.ISelectionProvider getSelectionProvider()
      Returns the selection provider.
      protected void setShellStyle​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 shell
        title - the title
        parent - the parent
        selectionProvider - 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:
        setShellStyle in class org.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:
        createButton in class org.eclipse.jface.dialogs.Dialog
      • createButtonsForButtonBar

        protected void createButtonsForButtonBar​(org.eclipse.swt.widgets.Composite parent)
        Overrides:
        createButtonsForButtonBar in class org.eclipse.jface.dialogs.Dialog
      • configureShell

        protected void configureShell​(org.eclipse.swt.widgets.Shell newShell)
        Overrides:
        configureShell in class org.eclipse.jface.window.Window
      • createDialogArea

        protected org.eclipse.swt.widgets.Control createDialogArea​(org.eclipse.swt.widgets.Composite parentComposite)
        Overrides:
        createDialogArea in class org.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 descriptors
        domain - the domain
        eObject - the e object
        Returns:
        the list