Bug 247503

Summary: [search] Search for text in Java files (including attached source )
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: chabulier, daniel_megert, eclipse, frederic_fusier, jerome_lanneluc, Konstantin.Scheglov, markus.kell.r, mlists, philippe_mulet
Version: 3.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 23341, 199994    
Bug Blocks:    

Description Dani Megert CLA 2008-09-16 10:43:04 EDT
This bug covers the UI work for bug 199994:

Often you want to find a string in a comment or string literal which can also be in a class file (resp. its attached source).

We see two approaches:
a.) add it to file search: Extensions can provide source content to archive files and class files. File search then would use these files instead of the binary content to search
b.) add it to Java search: Add a new search option 'Text references'

I believe there are two many problems with a.): How to present matches (file search result view only shows resources), how to open a match, what if the user really wants to search the content of the binary file, how to specify a scope 
b.) has the advantage that the search scope are Java aware, the result view shows Java elements, etc.

The question is, where would b.) be implemented. It could be implemented in the UI, as we know how to visit all Java files and look at their content.
But maybe it would be better if jdt.core does it, as the search could also be useful for other clients.
Comment 1 Dani Megert CLA 2010-03-22 07:07:18 EDT
*** Bug 306596 has been marked as a duplicate of this bug. ***
Comment 2 chabulier CLA 2010-03-22 08:07:39 EDT
It looks like this bug already there for a very long time, not sure if we have any  schedule for it?
Comment 3 Dani Megert CLA 2010-03-22 09:43:19 EDT
>not sure if we have any  schedule for it?
Nope.