Activate Menu Item depending on logged-in user [message #106668] |
Mon, 29 September 2008 04:49  |
Eclipse User |
|
|
|
Hi,
Following is the requirement:
A menu item in a context menu should be visible/enabled only when the
logged-in user belongs to a certain user-group (having elevated
privileges).
Currently, i am able to use the org.eclipse.ui.menus extension to display
the menu and enable/disable it based on the perspective using the
<activeWhen> tag (which was another requirement).
Any pointers on how the menu item can be enabled/disabled based on the
logged-in user? Basically, how can an object completely unrelated to the
UI be used to activate/deactivate a menu item? It would be preferable if
the bulk of this requirement could be implemented using plugin.xml, as
opposed to only programming in java.
TIA,
Best Regards,
-abhi
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03644 seconds