Bug 249043 - [Perspectives] Hiding Perspectives that are exclusive to a specific Product
Summary: [Perspectives] Hiding Perspectives that are exclusive to a specific Product
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2008-09-29 16:19 EDT by Zina Mostafia CLA
Modified: 2008-10-03 13:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zina Mostafia CLA 2008-09-29 16:19:02 EDT
Build ID: 3.4

Steps To Reproduce:
I have a customer that was looking to remove certain perspectives from view, for security reasons as well as business reasons. They tried disabling the capabilities in the preferences, but it didn't really get rid of the ability to see perspectives. We found the only way to do so would be to delete associated plugins, but this would not be a supported action. They've asked that I submit an RFE for this functionality, because it would be a way to improve their role groups and manage their teams, because they could specify functionality based on their team role. 

Specifically, the perspectives they were looking to disable or not allow were CVS and Data Tools



More information:
Comment 1 Paul Webster CLA 2008-09-30 09:24:46 EDT
One way would be to remove the definitions from the plugin.xml using the Adapter Hooks API.  http://wiki.eclipse.org/Product_Customization can remove specific extensions using XSLT as of eclipse 3.3 once set up for a given product (and is per product, so a different product could run from the same bundle repository with the original code).

Also, in 3.4 activities/capabilities that support core expressions were added.  The advantage of core expression activities is that removing a perspective contribution using them would remove it from the perspective registry as well as the appropriate dialogs.

Thes options are both available in the 3.4 based eclipse, and it sounds like either would provide the functionality they are looking for.

PW
Comment 2 Kevin McGuire CLA 2008-10-02 15:21:56 EDT
Assigning to [Perspectives] to get it out of inbox but its really more about UI reduction.  Also something to think about for 4.0.
Comment 3 Paul Webster CLA 2008-10-02 15:41:34 EDT
It sounds like one of the two candidates would work for you, either using an ISourceProvider to provide the team roles to the IEvaluationService and the core expression activities or using the product customization hook with that product (with product customization, a restart is required to change what is filtered).

If either of these don't work let me know (RE-OPEN) and we'll try and figure out why.

PW
Comment 4 Eric Moffatt CLA 2008-10-03 13:00:31 EDT
Paul, does the second (core expressions) approach also remove it from 'Quick Access' ?
Comment 5 Paul Webster CLA 2008-10-03 13:36:48 EDT
(In reply to comment #4)
> Paul, does the second (core expressions) approach also remove it from 'Quick
> Access' ?

Yes, core expression activities remove it from the perspective registry completely.

PW