Community
Participate
Working Groups
Currently the shortcuts written in the menu are not linked with the shortcuts defined by in org.eclipse.ui.binding. It's just a setText("\t myShortcut") after the action name. It should be interesting to link them. Moreover, if the user redefines these shortcuts, this change should appear next the corresponding action. This problem concerns the following actions : - Align Left, Right, Top, Bottom - Route by left, right, top, bottom - Delete from model (maybe) - other actions?
Delete From Diagram, with DEL, but there is a conflict in Eclipse with this shortcut.
Done for Delete From Model in r2468
With the KeyBinding for the Delete Action, we can't remove selected elements in the Model Explorer with the DEL key.
I posted a bug for the GMF Developpers (bug 323618), but currently we don't have answer. A second solution to do the keybinding is to rewrite the GMF actions in our own menu, using the Eclipse API (org.eclipse.commands.ui, and so on). With this solution, we need to rewrite the Menu Diagram, the GMF Toolbar action and the GMF popup actions.
Committed in r2626 (first part): a Papyrus Menu Diagram, in the popup : a Papyrus Menu Filters a Papyrus Menu Format a Papyrus Toolbar
Minor Changes in r2628
The follow of the rewriting GMF Action is in sub task 324274.
Note : the class org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor adds some binding : - DEL - BS - F2 - - (zoom -) -= (zoom =) -+ (zoom 0)
In R3998 : all GMF key binding are removed : Remove the keybindings provided by GMF : in the class UmlGmfDiagramEditors + in the class SymlDiagramEditor which doesn't have the same hierarchy that others diagrams Provides a handler for the rename action (with the command org.eclipse.ui.edit.rename) Write the keybinding for the rewritten command (Zoom In, Zoom Out) Other GMF bindings are removed (BS, INSERT).
This bug can be marked as closed fixed.