Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Add / Hide Views programmatically
Add / Hide Views programmatically [message #467823] Fri, 11 May 2007 02:23 Go to next message
Eclipse UserFriend
Hi,

i'm developing an RCP-App which has different kind of Users (normal Users, admins etc.) Now I want to add a View to my app that is only shown to the admins. I'm able to identify users programmatically, and i want to add views programmatically too. For Now i'm adding my "admin-view" via the plugin.xml, and disable all view actions for non-admin users. But i don't like this solution.

Thanks in advance
Re: Add / Hide Views programmatically [message #467825 is a reply to message #467823] Fri, 11 May 2007 03:56 Go to previous message
Eclipse UserFriend
http://eclipse-jaas.sourceforge.net provides one solution. Essentially, separate out all your Admin actions/views in one bundle, and all your ordinary views in another. Then modify the activator so that the bundle view with the admin code isn't started if the user isn't an admin.

Alex.
Previous Topic:focus and SWT_AWT bridge
Next Topic:3.2.2 Update-Sites from feature.xml not listed as bookmark in update manager
Goto Forum:
  


Current Time: Sat May 17 03:06:44 EDT 2025

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

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

Back to the top