Bug 12900 - Can't search for files with search
Summary: Can't search for files with search
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-05 15:37 EST by Jed Anderson CLA
Modified: 2002-04-08 12:48 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jed Anderson CLA 2002-04-05 15:37:31 EST
Build: 20020404

Open the search dialog.
In the patterns field enter plugin.xml
Leave the Search expression field blank
The search button becomes disabled

Enter * as the search expression and you get > 2000 matches per file (I stopped
the search).

Side note, the pattern field should be named something like "files named" (look
at the windows explorer).
Comment 1 Erich Gamma CLA 2002-04-07 18:16:04 EDT
You have specified to search for "*" inside all plugin.xml files. As a result 
you will get a match for each line in a plugin.xml file. This is the correct 
behaviour.

I agree that the "Patterns" label is misleading. It should be called "File 
types" if there is space "Search in file types:"

(Dani we should get this one into M5)

Comment 2 Jed Anderson CLA 2002-04-08 10:12:58 EDT
The only time a user will look for * is when they have made a mistake in the
dialog (e.g. they meant to enter "foo*" or "*foo").  

We should disable the "Search" button when the search expression is "*".
Comment 3 Dani Megert CLA 2002-04-08 10:22:12 EDT
There will be several changes
0) "Text Search" becomes "File Search"
1) better naming of labels
2) moved file name pattern up
3) text pattern is now optional i.e. it will allow you to search for files
4) * for text pattern remains allowed: can be used to count the number of lines
in files.
Comment 4 Dani Megert CLA 2002-04-08 12:48:57 EDT
Fixed > 20020408