[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Hide MenuItems with Keybindings

Hey all,

i have an application with a user/rights management. Lets say my application has the views "a", "b" and "c". For each view there is a command to open that view, this command is placed in a menu and HAS A KEYBINDING.
Now if the user has only the right to see view "a" the other two menu entries should be invisible and the keybinding should not work anymore.
How can i do that? I found the visibleWhen attribute but i have the problem that i dont know how to check my "user Rights" if the user has the permission to see that menu entry. In addition i have the problem if i set the menu entry visible the keybinding still works. Thanks alot. Thomas