Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Editor Menu Contributions, Extension or Programmatic
Editor Menu Contributions, Extension or Programmatic [message #449176] Wed, 10 May 2006 17:42 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:How to use WorkbenchLabelProvider with TableViewer
Next Topic:different menu in different perspective
Goto Forum:
  


Current Time: Sun Aug 31 04:33:20 EDT 2025

Powered by FUDForum. Page generated in 0.27747 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top