Bug 331391 - [open type] Filter pattern to find a type-qualified nested type is not obvious
Summary: [open type] Filter pattern to find a type-qualified nested type is not obvious
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-29 23:49 EST by Kathir CLA
Modified: 2023-12-16 19:24 EST (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 Kathir CLA 2010-11-29 23:49:19 EST
Build Identifier: 

Hello ,

I m looking for an enhancement in eclipse particularly in Java Perspective which makes Development easy . When we Press the Ctrl+shift+T Key eclipse will provide option to Search a Class which is Default behavior.

I m looking for change to include search for the Inner Class or Interface on pressing Ctrl+shift+T Key .

For Example Let say

java.util.Map Interface having "Entry" Interface inside that. When we type Map.Entry in search box eclipse should take directly to the Map$Entry file.

Please Let me know any clarification on my Question.

Thanks
Kathir

Reproducible: Always

Steps to Reproduce:
Press the Ctrl+shift+T Key
Comment 1 Deepak Azad CLA 2010-11-30 00:31:15 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)
Comment 2 Dani Megert CLA 2010-11-30 02:13:50 EST
>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.
Comment 3 Markus Keller CLA 2010-11-30 07:04:11 EST
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.
Comment 4 Eclipse Genie CLA 2019-12-31 12:32:48 EST
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.
Comment 5 Dani Megert CLA 2020-01-03 07:54:10 EST
Comment 3 is not implemented/fixed as of 4.14.
Comment 6 Eclipse Genie CLA 2021-12-24 14:09:19 EST
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.
Comment 7 Eclipse Genie CLA 2023-12-16 19:24:35 EST
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.