Bug 247503 - [search] Search for text in Java files (including attached source )
Summary: [search] Search for text in Java files (including attached source )
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 306596 (view as bug list)
Depends on: 23341 199994
Blocks:
  Show dependency tree
 
Reported: 2008-09-16 10:43 EDT by Dani Megert CLA
Modified: 2010-03-22 09:43 EDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.