This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The code completion of "import" statements leaves a bit to be desired. Currently (NetBeans IDE 8.0.1 (Build 201408251540)) you have to 'step' through the entire package hierarchy to get to the class you want to import. I would like to be able to do the following: Suppose you have a class "my.package.SomeClass". Type "import So<ctrl-space>" or "import static So<ctrl-space>" and the editor should suggest "my.package.SomeClass" (<ctrl-space> is of course whatever code completion shortcut you've got configured). After selecting the suggestion, in case of a static import, it should append a further "." and suggest the methods that can be statically imported from the selected type. In case of a normal import, the caret is placed at the end of the line and you can type a ";" to end the line.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss
Tested with NetBeans IDE 8.2 (Build 201609300101): the code completion for import statements is still exactly the same as in 8.1, so this enchancement request is still relevant.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/f608e021a1f2
Integrated into 'main-silver', will be available in build *201611160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f608e021a1f2 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #248809 - Improve code completion of "import" statements - fixed.
I retried with NetBeans IDE 8.2 (Build 201705191307) but I still don't see any of the features described by this ticket being available.