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 - Better preview for Inspect&Transform
Summary: Better preview for Inspect&Transform
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2012-05-14 14:20 UTC by Jiri Prox
Modified: 2013-09-09 19:05 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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;

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.