How to programmatically create a context menu entry for arbitrary editors? [message #520372] |
Thu, 11 March 2010 21:06  |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
Hello,
I'm currently working on a project which serves nice functionality for a
couple of editors. It can be theoretically used by editors which have
been generated with EMF, i.e. editors for editing models. Now you can
see the problem. I don't know which EMF generated editors are present at
implementation time. And if I knew it can happen that more editors will
be added in future. So I need a possibility to programmatically add a
context menu entry for every editor of my choice. I want to add a
listener in the selection service and determine where the selection took
place - if it is an (EMF generated) editor I want to add a context menu
entry. How can I achieve this?
best regards,
Gilbert
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06634 seconds