[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: How to change the menu items according to the selected view

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