Bug 61812 - File Search needs "Whole Word"
Summary: File Search needs "Whole Word"
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 106285 253918 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-11 17:28 EDT by Tom Roche CLA
Modified: 2008-11-05 14:17 EST (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 Tom Roche CLA 2004-05-11 17:28:05 EDT
The File Search dialog tab (reached via, e.g., C-h>File Search) should
support the Whole Word option. What I mean:

My group is getting old source (many KLOC) running on a new base.
Among the many tasks involved is replacing many Java type names, e.g.
FacesConfig with FacesConfigTypeImpl. It would be nice to be able to
do this via C-h>Java Search (for which I'll do a separate bug), but
that does not support Replace. Instead I use C-h>File Search ... which
does the job, except that, when I attempt to replace

FacesConfig

I also catch

getFacesConfig
setFacesConfigName
FacesConfigHelper

etc. For this usecase I want *only* to replace, e.g., FacesConfig with
FacesConfigTypeImpl. This would be easy and not error-prone if File
Search supported one of the Find/Replace (C-f) Options, "Whole word".

File Search already supports the options "Case sensitive" and "Regular
expression"; I don't believe "Wrap Search" makes sense for File Search
(as it does for Find/Replace), and I'm not sure what the "Incremental"
option does. But Whole Word is very much needed, for both File Search
and Find/Replace!
Comment 1 Tom Roche CLA 2004-05-11 17:28:34 EDT
note I'm using 3.0-M8
Comment 2 Dani Megert CLA 2004-05-12 08:26:59 EDT
Regex supports Whole Word searches. Find/Replace had Whole Word option before
Regex support was added. Today we would probably not add in Find/Replace as well.
Comment 3 Thomas M??der CLA 2004-05-12 08:41:45 EDT
Works for me with "\bgetFacesConfig\b" regex.
Comment 4 Martin Aeschlimann CLA 2005-08-09 03:10:16 EDT
*** Bug 106285 has been marked as a duplicate of this bug. ***
Comment 5 Markus Keller CLA 2008-11-05 14:17:13 EST
*** Bug 253918 has been marked as a duplicate of this bug. ***