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 201653

Summary: Convert Array to Variable
Product: java Reporter: mithun_gonsalvez <mithun_gonsalvez>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description mithun_gonsalvez 2011-09-05 20:32:13 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 21.0-b17

Consider the following scenario:
final String[] args = {"A", "B", "C"};

args[2];      // <--- Press Ctrl+Space here and it currently gives "not a statement"

Suggested enhancement:
When pressing Ctrl+Space(or the the appropriate code completion key) it should give the option "Assign Value to New Variable"