public class EcoreShortcutHandler extends ShortcutHandler
ShortcutHandler
for the EcoreEditor. Uses an accelerator when creating new elements.Constructor and Description |
---|
EcoreShortcutHandler() |
Modifier and Type | Method and 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,
String title)
Creates the new element dialog.
|
protected String |
getDeleteCmdName() |
protected String |
getNewChildCmdName() |
protected String |
getNewSiblingCmdName() |
execute
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
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, String title)
ShortcutHandler
createNewElementDialog
in class ShortcutHandler
editingDomain
- the editing domainselectionProvider
- the selectionselection
- the selectiontitle
- the titleprotected String getNewSiblingCmdName()
getNewSiblingCmdName
in class ShortcutHandler
protected String getNewChildCmdName()
getNewChildCmdName
in class ShortcutHandler
protected String getDeleteCmdName()
getDeleteCmdName
in class ShortcutHandler
Copyright © 2019. All rights reserved.