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 88826 - CC Improvement: replace old variable with new one
Summary: CC Improvement: replace old variable with new one
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-07 14:48 UTC by Milan Kuchtiak
Modified: 2010-09-23 08:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
CC invokation (27.47 KB, image/jpeg)
2006-11-07 14:49 UTC, Milan Kuchtiak
Details
CC Result (7.10 KB, image/jpeg)
2006-11-07 14:49 UTC, Milan Kuchtiak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kuchtiak 2006-11-07 14:48:10 UTC
Currently, when you invoke the CC, e.g., for Math.abs() method argument,

    public int sample() {
        int a1field = -4;
        int a2field = 5;
        return Math.abs(a1field);
    }

 and you select another field, e.g. "a2field", the old variable isn't replaced
by the new one, instead, it is inserted, e.g. :

    public int sample() {
        int a1field = -4;
        int a2field = 5;
        return Math.abs(a2field1field);
    }

Other IDEs automaticaly replace the old value by the new one - selected from CC.

See also the pictures.
Comment 1 Milan Kuchtiak 2006-11-07 14:49:11 UTC
Created attachment 35852 [details]
CC invokation
Comment 2 Milan Kuchtiak 2006-11-07 14:49:31 UTC
Created attachment 35853 [details]
CC Result