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 209688 - Improve auto-completion inside an anonymous class
Summary: Improve auto-completion inside an anonymous class
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1.1
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-17 13:47 UTC by terje7601
Modified: 2012-03-17 13:47 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2012-03-17 13:47:55 UTC
When i have the following in the editor ("<cursor>" is the place where my cursor is):

String someLongDescription = "a long description";
new Thread(new Runnable() {

    public void run() {
        sLD<cursor>
    }

}).start();

Currently, when i press Ctrl+Space at this point, the auto-completion gives me all kinds of suggestions (like SQLData in java.sql), but not the one i want.

What i would like, is that the auto-complete feature recognizes i probably want to use "someLongDescription", but forgot to make it final.
So ideally it would present "someLongDescription" as the first option, and once chosen, automatically make the variable declaration final too.