Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to disable a perspective
How to disable a perspective [message #448785] Tue, 02 May 2006 08:45 Go to next message
Eclipse UserFriend
My application wants to give users credential based access, i.e. for
certain user with less privileges, I want certain perspective to be
disabled.

Any idea how to do this?

tia
~Mohit
Re: How to disable a perspective [message #448888 is a reply to message #448785] Sat, 06 May 2006 02:18 Go to previous messageGo to next message
Eclipse UserFriend
hi mohit

as par my knowledge there is no way to disable the whole perspective.

but you can do it by disable every or some of fields on that perspective according to the access rights.
Re: How to disable a perspective [message #448897 is a reply to message #448785] Sat, 06 May 2006 15:29 Go to previous message
Eclipse UserFriend
Define the separate perspectives in different plugins. Then, in the plugin's start() method (for the bundle context) throw an exception if the credentials aren't valid. This will stop the plugin from starting, and with it, the perspective/actions contained from being presented. (They will still show up in the list, though; they just won't be able to select it.)

See the eclipse JAAS project on sourceforge for more.

Alex.
Previous Topic:[HOW TO] change first location of help view?
Next Topic:RCP ToolProvider Problem
Goto Forum:
  


Current Time: Sat Aug 30 19:49:47 EDT 2025

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

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

Back to the top