In the "Go to type"-dialog i want to type (or paste) a fully qualified name, but i does not work.
For example type "java.util.Collections"
ACTUAL: No search result
EXPECTED: Collections is found and shown as "Collections (java.util)"
Created attachment 123369 [details]
Proposed patch including unittest
Created attachment 123370 [details]
Screenshot which shows the new feature
I will integrate it into NB 7.3.
I need to look how other IDEs are handling it.
I doubt that the patch can be as simple as it's now.
"java.util.AL" should give java.util.AbstractList but it does not.
Ideally also "j.u.AL" should work.
I've changed a patch a bit to support the cases described in comment #3.
I also changed the query to rather do list of all packages, it should be faster than doing getDeclaredTypes() with non existent package.
But it's rather hack. Ideally the generic infrastructure should know what is package and what is simple name. It cannot find it itself as it's generic (non java), so additional API is needed. I will extend the API.
The API extension will remove some code I've needed to add to JavaTypeProvider and also allow the fqn names to be highlighted.
Fixed jet-main 5436de8d59fe
For now done without the API extension as I've described above.
When the API gets over the API integration process I will rewrite it.
Thanks for the path.
Integrated into 'main-golden', will be available in build *201209070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Zezula <firstname.lastname@example.org>
Log: #217187:Patch to Support FQN in "Go to type"-dialog
*** Bug 219913 has been marked as a duplicate of this bug. ***