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 212483

Summary: Better preview for Inspect&Transform
Product: java Reporter: Jiri Prox <jiriprox>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jiri Prox 2012-05-14 14:20:25 UTC
Preview of Inspect&Transform should be improved. Now it shows only result of single modification which is highlighted by caret, but it would be better to show the result of currently selected modifications.


Product Version: NetBeans IDE Dev (Build 201205140400)
Java: 1.6.0_32; Java HotSpot(TM) 64-Bit Server VM 20.7-b02
System: Windows 7 version 6.1 running on amd64; Cp1250; cs_CZ (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Svata Dedic 2013-09-05 10:01:25 UTC
Sorry I can't imagine what you've meant. Could you describe the envisioned improvement a little more ? Thanks.
Comment 2 Jiri Prox 2013-09-05 10:59:54 UTC
1) Have a code:

   public static void main(int x) {
        x = x + 1;
        x = x + 2;
        System.out.println(x);
    }

2) Run single Inspect&Transform rule on it: Assignment replaceable with operator-assignment

-> two transformations are found

3) In the refactoring preview select first of them (only by moving caret to appropriate line in tree, not manipulate with check boxes)

-> the file in right part of windows is looks like the only selected transformation was applied, the second line is not modified. (although both check boxes are checked)


The other refactoring (e.g. Rename) show the preview as all transformation was applied.