Bug 30578

Summary: [Working Sets] More flexible working sets
Product: [Eclipse Project] Platform Reporter: Boris Pruessmann <boris>
Component: UIAssignee: Knut Radloff <knut_radloff>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Boris Pruessmann CLA 2003-01-30 03:32:09 EST
I think it would be a very good idea to make working sets more flexible/more 
dynamic...

Scenario 1:
My workspace currently contains 70 projects, half of it being projects 
containing unit tests. Per definition, all the test projects are named 
*.tests. 

Having the possiblity for working sets to include/exclude projects named 
*.tests would be a nice enhancement to my development experience (regular 
expressions would be greatly appreciated :) )

Scenario 2:
The SCM I am using has the notion of "Changelists". I would like to write an 
extension for a workingset that dynamically includes all the files in a 
specific changelists. I don't think that is easily possible at the moment.
Comment 1 Knut Radloff CLA 2003-04-07 09:32:50 EDT
For scenario 1 you should use filters. Note that the Navigator does not support 
user defined filters at this point. Bug 1970 is requesting this feature for the 
Navigator.

You can support scenario 2 by writing an extension to the 
org.eclipse.ui.workingSets extension point. You would listen to changes to the 
changelist and update the working set accordingly. Whenever the working set is 
changed you would send the CHANGE_WORKING_SET_CONTENT_CHANGE property change 
event (in IWorkingSetManager).

Let me know if this works for you.
Comment 2 Knut Radloff CLA 2003-05-29 17:53:08 EDT
Closing, assuming you are happy with using filters for scenario 1 and that the 
path to solving scenario 2 worked.