Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to get menumanager of Main menu in a treeviewer
icon5.gif  How to get menumanager of Main menu in a treeviewer [message #524200] Wed, 31 March 2010 07:06 Go to next message
WangYing  is currently offline WangYing Friend
Messages: 2
Registered: March 2010
Junior Member
I am a newer for RCP.
I really hope someone could give me some suggestion.
I have a request. I need the main menu and tool bar could show different items according to my selection in a treeviewer.


I have known the following coding "getViewSite().getActionBars().getMenuManager()"
which could get the menumanger of a view that not I want.

I want to get the menumanager of workbench main menu in a listener method so that I could reset action into the menumanger.

Is it possible?
Re: How to get menumanager of Main menu in a treeviewer [message #524272 is a reply to message #524200] Wed, 31 March 2010 11:33 Go to previous message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
Hi WangYing,

> I have a request. I need the main menu and tool bar could show different items
> according to my selection in a treeviewer.

these things should be done using a menu contribution / the extension point
"org.eclipse.ui.menus":

-
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench_cmd_menus.htm
- http://wiki.eclipse.org/Menu_Contributions
- http://pa-blogger.blogspot.com/2008/07/orgeclipseuimenus.htm l

Greetings,

Ralf


--
http://www.ralfebert.de/blog/
http://twitter.com/ralfebert/
Previous Topic:IMemento usage
Next Topic:Couple editor to perspective?
Goto Forum:
  


Current Time: Tue Apr 30 13:10:35 GMT 2024

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

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

Back to the top