Disabling Activity Enablement [message #491270] |
Tue, 13 October 2009 21:49 |
dwain Missing name Messages: 35 Registered: October 2009 |
Member |
|
|
I am creating an eclipse plugin where different users have different roles. I am able to define what the user is able to see with no problem. My problem is when they are not allowed to see a perspective because of their roles, they simply have to open the "open perspectives" dialog, then click the "show all" check box at the bottom, and then they can attempt to open that dialog. It then states that a certain activity must be enabled in order to open that perspective and asks if you would like to enable that activity. After they click yes, then the perspective is opened.
That is my problem though, since I don't want that user to be able to open that perspective. So I was thinking that I would like to override that action that loads the org.eclipse.ui.internal.activities.ws.EnablementDialog or is there a way to disable it through an activityPatternBinding or something like that? Or does anyone have any ideas about how to turn that feature off? Well I really appreciate the help and I hope that this is the correct place to ask a question like this. Thank you.
Dwain
[Updated on: Tue, 13 October 2009 21:50] Report message to a moderator
|
|
|
Re: Disabling Activity Enablement [message #491272 is a reply to message #491270] |
Tue, 13 October 2009 22:02 |
|
Hi,
have a look at activities:
http://www.vogella.de/blog/2009/07/13/eclipse-activities/
Best regards, Lars
--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter
dwain wrote:
> I am creating an eclipse plugin where different users have different
> roles. I am able to define what the user is able to see with no
> problem. My problem is when they are not allowed to see a perspective
> because of their roles, they simply have to open the "open perspectives"
> dialog, then click the "show all" check box at the bottom, and then they
> can attempt to open that dialog. It then states that a certain activity
> must be enabled in order to open that perspective and asks if you would
> like to enable that activity. After they click yes, then the
> perspective is opened.
> That is my problem though, since I don't want that user to be able to
> open that perspective. So I was thinking that I would like to override
> that action that loads the
> org.eclipse.ui.internal.activities.ws.EnablementDialog or is there a way
> to disable it through an activityPatternBinding or something like that?
> Or does anyone have any ideas about how to turn that feature off? Well
> I really appreciate the help and I hope that this is the correct place
> to ask a question like this. Thank you.
>
> Dwain
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08006 seconds