[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Controlling visibility (menu/view/perspective)

I want to allow plugins to contribute to the menu bar, perspectives, views, etc. but these items should be conditionally available. For instance, a user logs in to the app and based on their permissions they see certain menu items, views, and perspectives.

I was hoping to do this using declaratives but there are bugs and I'm not sure if that would be possible anyway. How do I do this sort of thing? I did a little test for a perspective/view/command plugin and they all just display. Also, once I get this figured out, how do you enable/disable menu items based on what perspective is shown?

Thanks.

http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/msg27331.html
http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/msg27350.html
http://wiki.eclipse.org/FAQ_How_do_I_make_my_action_set_visible%3F