Add actions/actionsets to the context-menu? [message #965867] |
Wed, 31 October 2012 11:13  |
Eclipse User |
|
|
|
I'd wish to customize the editor context menu, adding some "external" (i.e. non related to Graphiti-GEF) actions. Specifically, I have some lauch actions (Run As / Debug As), that can currently by called from the main menu (and the contextual menu on the resource, in the Project Explorer), but I'm not sure how to add those items (either programatically, in my DiagramEditorContextMenuProvider or declaratively in plugin.xml) to the context menu.
Any pointers?
|
|
|
|
Re: Add actions/actionsets to the context-menu? [message #1005255 is a reply to message #968070] |
Thu, 24 January 2013 13:17   |
Eclipse User |
|
|
|
Am I wrong in guessing that Graphiti is in this respect little cooperative and disruptive of the Eclipse-RCP usage? By building the context-menu in such uncooperative away (programatically, and in isolation), the editor loses (irrevocably?) lots of standard functionality that the user expects in a Eclipse-RCP product. For example: I have a product that works similarly to Eclipse IDE, with a "project explorer" with its resources, and text editors that work together with my Graphiti editor; the user expects that when right-click any resource in the Project Explorer, in the Text Editor or in the Graphiti Editor, the contextual menu will allow some actions that are common to all them (and which are provided by other plugins unrelated to the editor): for example, the "Run/Debug" action set, the "Team -> Compare with".
I'm not an expert at Eclipse-RCP best practices, but this smells bad to me.
The Graphiti editor should not assume that all the actions that are to be executed via its contextual menu are editor actions.
[Updated on: Thu, 24 January 2013 13:44] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03811 seconds