Class EcoreShortcutHandler

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

    public class EcoreShortcutHandler
    extends ShortcutHandler
    ShortcutHandler for the EcoreEditor. Uses an accelerator when creating new elements.
    Author:
    Johannes Faltermeier
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.jface.dialogs.Dialog createNewElementDialog​(org.eclipse.emf.edit.domain.EditingDomain editingDomain, org.eclipse.jface.viewers.ISelectionProvider selectionProvider, org.eclipse.emf.ecore.EObject selection, java.lang.String title)
      Creates the new element dialog.
      protected java.lang.String getDeleteCmdName()  
      protected java.lang.String getNewChildCmdName()  
      protected java.lang.String getNewSiblingCmdName()  
      • Methods inherited from class org.eclipse.core.commands.AbstractHandler

        addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EcoreShortcutHandler

        public EcoreShortcutHandler()
    • Method Detail

      • createNewElementDialog

        protected org.eclipse.jface.dialogs.Dialog createNewElementDialog​(org.eclipse.emf.edit.domain.EditingDomain editingDomain,
                                                                          org.eclipse.jface.viewers.ISelectionProvider selectionProvider,
                                                                          org.eclipse.emf.ecore.EObject selection,
                                                                          java.lang.String title)
        Description copied from class: ShortcutHandler
        Creates the new element dialog.
        Overrides:
        createNewElementDialog in class ShortcutHandler
        Parameters:
        editingDomain - the editing domain
        selectionProvider - the selection
        selection - the selection
        title - the title
        Returns:
        the dialog
      • getNewChildCmdName

        protected java.lang.String getNewChildCmdName()
        Overrides:
        getNewChildCmdName in class ShortcutHandler
        Returns:
        the cmd name for new children
      • getDeleteCmdName

        protected java.lang.String getDeleteCmdName()
        Overrides:
        getDeleteCmdName in class ShortcutHandler
        Returns:
        the cmd name for deletions