Bug 217406 - [search] Fine grain search integration in editor
Summary: [search] Fine grain search integration in editor
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 213342 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-01 03:51 EST by Philipe Mulet CLA
Modified: 2008-02-04 05:53 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 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?