Community
Participate
Working Groups
When the active editor is Papyrus, handlers for the eclipse Edit menu should be provided (e.g. org.eclipse.ui.edit.delete).
The class org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor provides some keys binding, without using the extension point org.eclipse.ui.keybindings. In order to ensure a correct keybinding for the Delete Action in the Diagram, we need to remove the following keybinding in the inherited classes : keyHandler.put(KeyStroke.getPressed(SWT.DEL, 127, 0), getActionRegistry().getAction(ActionFactory.DELETE.getId())); This binding is removed in r3286.
In r3291 done for the delete action : now the 3 Delete Action (in Model Explorer, Menu Edit and Diagram) are the same. For the Diagram, a specific keybinding is defined in the plugin.xml of the common (DEL for Hide and CTRL+DEL for Delete). A class StateActionSourceProvider is added to these plugins. The changes of the variable provided by these classes allow to refresh the state of the action in the Menu Edit.
In r3372: Comment added in plugin.xml.
In R3606 : minor change in org.eclipse.papyrus.modelexplorer.provider.ActionStateSourceProvider : an equals() replaced by an Instanceof!
Merged with trunk in R3633
This bug can be marked as closed