Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to change the menu items according to the selected view
How to change the menu items according to the selected view [message #486366] Thu, 17 September 2009 12:56 Go to next message
Li Junhong is currently offline Li JunhongFriend
Messages: 1012
Registered: July 2009
Senior Member
Hi all,

I have a "Layout" menu in the menu bar of my RCP application and several different views. I want to change the menu items under "Layout" menu according to the view I select. How to realize this?

Anyone can give me some clues? Thanks very much!

Li
Re: How to change the menu items according to the selected view [message #486368 is a reply to message #486366] Thu, 17 September 2009 13:00 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Li Junhong wrote:
> I have a "Layout" menu in the menu bar of my RCP application and several
> different views. I want to change the menu items under "Layout" menu
> according to the view I select. How to realize this?

When defining your menu in plugin.xml use visibleWhen element + the
variable activePartId

- Prakash

Platform UI Team, IBM
http://blog.eclipse-tips.com
Previous Topic:compare float numbers with precision
Next Topic:External View
Goto Forum:
  


Current Time: Mon Jan 13 01:28:21 GMT 2025

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

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

Back to the top