Bug 292204 - [ActivityMgmt] Need a way to disable the enabling of activities
Summary: [ActivityMgmt] Need a way to disable the enabling of activities
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2009-10-13 19:18 EDT by dwain Mising name CLA
Modified: 2019-09-06 16:08 EDT (History)
2 users (show)

See Also:


Attachments
The dialog that opens now (23.33 KB, image/jpeg)
2009-10-13 19:18 EDT, dwain Mising name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dwain Mising name CLA 2009-10-13 19:18:06 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Build Identifier:  20090619-0625

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.

There needs to be a way to disable the org.eclipse.ui.internal.activities.ws.EnablementDialog from loading and a message dialog should show up that simply says that you don't have the required activities to be able to show that perspective rather then allowing them to give themselves permission to show that perspective.  It would be great to if the perspectives that were not enabled because of the activities could not be seen either.

Reproducible: Always
Comment 1 dwain Mising name CLA 2009-10-13 19:18:29 EDT
Created attachment 149486 [details]
The dialog that opens now
Comment 2 Paul Webster CLA 2009-10-14 07:53:54 EDT
I'd consider adding a "don't show ask the user" preference for RCP apps.  That would remove the pesky check boxes from the wizards and open dialogs.

But we'd have to make sure it doesn't interfere with activity behaviour.

PW
Comment 3 Boris Bokowski CLA 2009-10-14 12:32:29 EDT
Have you considered using expression-based activities? They don't take part in the "trigger point" logic as normal activities do.
Comment 4 dwain Mising name CLA 2009-10-15 15:18:11 EDT
The only way I have been able to figure out to make it work now is to add another service source provider that tells the workspace if a perspective is enabled or not and then added an enabled when to an activity.  Then I created an activityPatternBinding that binds the perspective to that enabled activity.  Just adds a lot of extra logic to our system.  I think that is what you meant Mr. Bokowski but am not 100% certain.

It just seemed to me like something that should be able to be disabled so that a user couldn't automatically enable whatever activities that he liked.
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:08:59 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.