Summary: | [open type] Filter pattern to find a type-qualified nested type is not obvious | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Kathir <kathiravan.govindasamy> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | minor | ||
Priority: | P3 | CC: | daniel_megert, deepakazad, markus.kell.r |
Version: | 3.7 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | stalebug |
Description
Kathir
2010-11-29 23:49:19 EST
You need to search for "*Map.Entry" in the Open type dialog to get to an inner type. (I mentioned this in another reply on the newsgroup, but maybe you did not see that). Internally we add a trailing * (or something equivalent) to the search pattern entered in the dialog. e.g. searching for 'TextEditor' returns 'TextEditorAction', 'TextEditorAdapter' etc. Is there a good reason why we do not automatically add a leading * as well ? (If we do anything here we should also do it in other places e.g QuickOutline) >Is there a good reason why we do not automatically add a leading * as well ?
Because the result is less precise.
Why not simply type "Entry"?
Having said that, searching for "Map.Entry" finds the interface, so Open Type should probably behave the same.
More precisely, you should search for "*.Map.Entry", otherwise you'd also get matches like "java.util.LinkedHashMap.Entry". This actually shows nicely why automatically adding a "*" at the beginning would be a bad idea.
> Having said that, searching for "Map.Entry" finds the interface, so Open Type
> should probably behave the same.
I agree.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |