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.

Bug 245544 - Improve auto-completion in case of unimported classes
Summary: Improve auto-completion in case of unimported classes
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2014-07-10 11:49 UTC by terje7601
Modified: 2016-11-07 10:22 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2014-07-10 11:49:18 UTC
What I'd like, is for NetBeans auto-completion to behave (or provide an option to behave) as follows when attempting to do auto-completion:

* when doing auto-completion for a static member of an unimported class, like "SomeClass.<caret>": first do the import, then provide the completion (currently it's the other way around)
motivation: when I have "Pattern.<caret>", NetBeans provides me a huge list of options, due to some obscure class with lots of constants ( If it would first do the import, I'd just hit enter to select "java.util.regex.Pattern" & only have about 10 options left.

* whenever NetBeans says "No suggestions": check if there are unimported classes, trigger "Fix All Imports" & afterwards try again
motivation: when I have "List<String> list = null; list.<caret>", I'd like NetBeans to trigger "Fix All Imports", let me import "java.util.List", and then provide a list of options. Currently it just says "No suggetions".
Comment 1 Martin Balin 2016-07-07 07:27:02 UTC
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
Comment 2 terje7601 2016-11-07 10:22:35 UTC
Still relevant.