Class 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
    • 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
      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 new EcoreCreateNewChildDialog.
    • 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.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

      • 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 new EcoreCreateNewChildDialog.
        Parameters:
        parentShell - the parent shell
        title - the title of the dialog
        parent - the parent EObject which will contain the new child
        selectionProvider - 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 class CreateNewChildDialog
        Parameters:
        descriptors - the descriptors
        domain - the domain
        eObject - the e object
        Returns:
        the list