Community
Participate
Working Groups
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)
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
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).
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.
You already filed this as bug 213342. Marking bug 213342 as dup of this one which contains more details.
*** Bug 213342 has been marked as a duplicate of this bug. ***
>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?