Bug 46051 - [search] Search results with details (show matched line)
Summary: [search] Search results with details (show matched line)
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P5 enhancement with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 380992 443095 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-04 14:06 EST by Brett Kotch CLA
Modified: 2014-09-02 10:21 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brett Kotch CLA 2003-11-04 14:06:29 EST
The current search results do not show the actual line that matched the search. 

Suggest that the search results be a tree with the filename as a node, and the 
lines that match within that file as the children of that node. 

Also suggest that search have an option specifying if the method name should be 
displayed or not in the search results.
Comment 1 Dirk Baeumer CLA 2003-11-05 04:06:31 EST
We are working on a tree based search result view. But it might not contain 
all your wishes ;-).
Comment 2 Dani Megert CLA 2003-11-05 04:52:57 EST
Brett, each search (text, Java, PDE, ...) is contributed and the presentation is
up to them. In addition the Search component is not limited to text searches
i.e. there might be a graphical search. Having said this, in which searches
would you expect to see line number info? I think in text search it could be
useful though never work with lines expect (except goto line, Ctrl+L) but in
Java search I would consider it pollution.
Comment 3 Brett Kotch CLA 2003-11-05 07:25:43 EST
Oh ... when I weas referring to the lines that match, I wasn't referring to the 
actual line number. I agree with you, I don't find line number useful. But when 
I specified the lines that match, I was referring to displaying the actual line 
number. 

For example, the search results for "_test" would result in: 

+ Example.java
  - _test = getGretting();
  - return _test;

where the actual "line" that matches shows up in the text. 

An example of the "option" mentioned later in the description would result in: 

+ Example.java
  + getTest()
      - _test = getGretting();
      - return _test;
Comment 4 Thomas M??der CLA 2004-06-29 11:41:11 EDT
close to the other PR. I added a reference to this one to the duplicate.

*** This bug has been marked as a duplicate of 47136 ***
Comment 5 Dani Megert CLA 2012-05-30 04:08:24 EDT
Reopening as this is not a dup of bug 47136.
Comment 6 Dani Megert CLA 2012-05-30 04:22:47 EDT
*** Bug 380992 has been marked as a duplicate of this bug. ***
Comment 7 Dani Megert CLA 2014-09-02 10:21:43 EDT
*** Bug 443095 has been marked as a duplicate of this bug. ***