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.
Product Version: NetBeans IDE 8.0.2 (Build 201411181905) Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 1 Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b18 When the cursor is in the context of a particular enum, typing part of the enum name should be enough to show enum values, even without the enum class prefix. For example: public class EnumCodeCompletion { enum Sample { ONE, TWO, THREE, FOUR } void demo() { Sample type; type = T| } } When I call the code completion after the letter "T", it shows me some suggestions, but without expected TWO and THREE enums (see the first screenshot). When I press Ctrl+Space again, I get hundreds of completely unrelated suggestions, with TWO and THREE buried somewhere deeply (see the second screenshot). When I do the same in Eclipse, it conveniently suggests me matching enums, and automatically fills the necessary class prefix on Enter (see the third screenshot).
Created attachment 153050 [details] NetBeans default CC
Created attachment 153051 [details] NetBeans all items CC
Created attachment 153052 [details] Eclipse default CC
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/ce31ba4f43c7
Integrated into 'main-silver', will be available in build *201504140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ce31ba4f43c7 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #251669: Smarter enum CC - fixed.
Checked in 201504150001 - it works, but could be done a little bit better. When the enum is expected it should be highlighted as the default suggestion, not an optional somewhere at the top of the list. You probably hate to be compared to Eclipse, but please take a look again how it's done there. It might seem to be a minor difference, but it's all about the productivity, when you are coding the whole day.
Created attachment 153248 [details] Improved but still not perfect enum cc in NetBeans.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/25387c6cedb1
Integrated into 'main-silver', will be available in build *201504201004* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/25387c6cedb1 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #251669: Smarter enum CC - fix cont.
Verified with 201504280001