Bug 247590 - File Search scope has terribly counterintuitive behavior
Summary: File Search scope has terribly counterintuitive behavior
Status: RESOLVED DUPLICATE of bug 108247
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-17 00:09 EDT by Mike Schrag CLA
Modified: 2008-09-17 04:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Schrag CLA 2008-09-17 00:09:50 EDT
Build ID: I20080617-2000

Steps To Reproduce:
Just ... try to use file search more than a couple times in a row.

More information:
Seriously, though, binding search scope to the current selection causes really obnoxious behavior with the File Search dialog.  It's almost ALWAYS wrong.  I click on a folder and Search, which correctly chooses "Selected Resources".  You then click into some code to make a change and realize you want to search for something different, so you open search again, and invariably it's now reset to Workspace, which is almost NEVER desirable.  Likewise, if you select "Enclosing Project" and search then just want to change your search terms and reopen, Enclosing Project is now grayed out and workspace is selected.  I think search is trying to be too smart for its own good here ... I would rather see it trying to be less clever about dynamically looking at the current selection and instead just preserve my previous settings.  If i open search twice, it's far more intuitive to be able to just re-execute the search I just executed.  Especially with "enclosing project," at least preserve that one.

I know this is a classic vague bug where I don't know exactly how I want it to behavior, nor have I thought out all the ramifications of this request, but what I can say for sure is that the vast majority of the time, the scope selection is incorrect and often fighting against what I have previousl explicitly set.
Comment 1 Dani Megert CLA 2008-09-17 04:26:31 EDT
The problem is that the 'Selected resources' setting is lost (turned into 'Workspace') when opening the search dialog when in an editor. This is true for all searches not just File Search. Fixing bug 108247 will fix this issue.

*** This bug has been marked as a duplicate of bug 108247 ***