Bug 217406

Summary: [search] Fine grain search integration in editor
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, martinae
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Philipe Mulet CLA 2008-02-01 03:51:15 EST
3.4M4

What are the plans for allowing contextual fine-grain search  in editor ? Like if I select a cast type, then you could offer to find references as cast type to this type in context menu ?

(Either find all refs as today, or provide an extra entry for finding similar references - if you were super nice, then you could even tell me that it is a cast type in menu ? but not mandatory)
Comment 1 Philipe Mulet CLA 2008-02-01 03:53:21 EST
Martin's comment:

I believe that the 'fine grained' search is more of an advanced search. A search for all references to a type is more common that the operation to search for a cast.
So I don't plan to change the behavior of the reference search short cut. As there are some many fine grain search options, an all can be used in combination, I also don't plan to add more context menu entries. We can think of providing some very useful ones. But at the moment I don't see which ones that would be. Note that there's also a pressure to keep the context menus compact.
What I think will be a big improvement if the references in the search result can be grouped or filtered my match location. That will be possible with new API from https://bugs.eclipse.org/bugs/show_bug.cgi?id=211748
Comment 2 Philipe Mulet CLA 2008-02-01 03:54:55 EST
I was more on the line of looking at the selection (using DOM underneath) or better codeselect information (like a cast type got selected), and offering a 'search similar references' which would be fairly generic (the specifics come from the selection).
Comment 3 Philipe Mulet CLA 2008-02-01 03:55:23 EST
Also, I like the grouping end results, I am just concerned by performance. If you tell upfront you only care about cast, then this may significantly reduce the time it takes to find references.
Comment 4 Dani Megert CLA 2008-02-01 03:56:34 EST
You already filed this as bug 213342. Marking bug 213342 as dup of this one which contains more details.
Comment 5 Dani Megert CLA 2008-02-01 03:56:55 EST
*** Bug 213342 has been marked as a duplicate of this bug. ***
Comment 6 Dani Megert CLA 2008-02-01 04:01:15 EST
>I believe that the 'fine grained' search is more of an advanced search.
I agree. Since this feature is in I really only used it once. How many time did you use it so far?

We can't wait for the AST when opening the context menu.

>better codeselect information (like a cast type got selected)
You mean JDT Core provides more info on codeSelect?