Bug 182456 - "Enclosing working set" scope in missing in search dialog.
Summary: "Enclosing working set" scope in missing in search dialog.
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-15 09:26 EDT by Michel D. CLA
Modified: 2020-05-12 11:05 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 Michel D. CLA 2007-04-15 09:26:46 EDT
I want to be able to search something in my current enclosing working set.

And "Enclosing project" seams to be a bit more restrictive when your project consist of a lot of sub projects enclosed in working set. Often you don't when to only search in the enclosing project but in your enclosing working set.

Furthermore, in the search dialog, it's to long to change each time the scope working set to the one i currently working on (as many developpers i have many working set).

So adding the scope "Enclosing working set" in the search dialog would be a great feature :)
Comment 1 Martin Aeschlimann CLA 2007-04-16 04:08:49 EDT
You can set the workings set field to 'Window working set'. Did you see this?
Comment 2 Michel D. CLA 2007-04-16 09:45:17 EDT
Yes i saw this.
But each time you change your 'working set' (because you change your working projet for example) you have to change also your "window working set" in the eclipse menu bar.
With an option like 'enclosing working set' it becomes easier because you have nothing to do.

It's the same problem with the 'Open type' or 'Open resource' dialog. Even if you set the workings set field to 'Window working set', you have to change the 'window working set' in the eclipse menu bar to the good 'working set' (of your new working project) before searching something.
Comment 3 Martin Aeschlimann CLA 2007-04-16 12:32:36 EDT
It's not really clear to me what the 'current enclosing working set' is. How can we find this out?

Is it one that you filtered the package explorer with? 
Comment 4 Michel D. CLA 2007-04-16 13:14:25 EDT
Not really. 'enclosing working set' is a new suggestion that i ask for in the search dialog (Ctrl-H). So it isn't exist for now.
I propose to add it (this 'enclosing working set' option) near the 'enclosing projet' option (under 'scope') of the search dialog (Ctrl-H).
It may works like the 'enclosing project' option but with working set, like i said in my post above.

Comment 5 Martin Aeschlimann CLA 2007-04-17 04:49:18 EDT
I understand that. But how would we evaluate the 'enclosing working set', how is it defined?
Comment 6 Michel D. CLA 2007-04-17 18:05:07 EDT
The enclosing working set(s) are the working set(s) that contain the enclosing project of my current working file.

Currently Eclipse can evaluate the enclosing project of a file, class, etc : the clue is that the 'enclosing project' option exists in the search dialog (Ctrl-H) and Eclipse can search things that belongs to your enclosing project.

So perhaps it could exists a 'method' to find the working set(s) which your 'enclosing project' are belonging to and search only in these working sets.

1) So if i want to search something (string, ressource, type...), in the dialogs (search dialog, open type dialogs, ressources dialog, etc...) i could set the search option to 'enclosing working set' (this option don't exist actually).
2) Eclipse can find the 'enclosing project' (from my actual working file i guess). Actually Eclipse knows how to do that.
3) then Eclipse could 'find' (it's perhaps difficult to program that i guess) the enclosing working sets which contain my enclosing project and search only in these working sets.
(my english are terrific ...)
Comment 7 Martin Aeschlimann CLA 2007-04-18 06:36:30 EDT
One problem is that a file or project can be in one or more working sets. What are we doing then?
Comment 8 Michel D. CLA 2007-04-19 04:44:45 EDT
Eclipse can search in these working sets. No ?

Currently Eclipse knows how to do that (you can now set the option to search in many working sets).
So if a file or project are in one or more working sets (the enclosing working setS like i said in my post above), Eclipse could automaticaly search in them.
Comment 9 Eclipse Webmaster CLA 2019-09-06 16:05:42 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.
Comment 10 T. Orf CLA 2020-05-12 11:05:30 EDT
This is still relevant (in Eclipse 4.14); I was about to request the same feature.

I agree with Michel D.: Eclipse already has scope "enclosing project" and the ability to search multiple working sets ("Choose..." button, then (*) Selected Working Sets). So the straight-forward behavior for the proposed scope would be to search in all working sets that contain the enclosing project.