Editor Menu Contributions, Extension or Programmatic [message #449176] |
Wed, 10 May 2006 17:42  |
Eclipse User |
|
|
|
Originally posted by: childress.shapetechllc.com
What is the best or preferred way of adding menu and toolbar contributions
for a specific editor?
In my application, most of the menu items will added when there is an
active editor. I can add them programatically in
ApplicationActionBarAdvisor, but I'm not sure they are editor
contributions there. I think the better way is to add them via the
EditorActions extension. But, I'm having challenges here too (probably
not doing something right). For example, I can't seem to get the Edit menu
item to show, nor am I able just to add a new menu item as per the
Contributing Actions to the Eclipse Workbench article. I keep getting the
Invalid Menu Extension error.
Any suggestions? Thanks.
Ken...
|
|
|
Re: Editor Menu Contributions, Extension or Programmatic [message #449180 is a reply to message #449176] |
Wed, 10 May 2006 19:14  |
Eclipse User |
|
|
|
The "Eclipse Rich Client Platform" book by McAffer & Lemieux provides a
good discussion of programmatic versus declared actions and a detailed
walk through for doing this. I followed their directions and got it to
work first time. If you want menu and toolbar actions to be added/removed
with editors or perspectives, then the declared action method is better
suited.
|
|
|
Powered by
FUDForum. Page generated in 0.27747 seconds