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.
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
Sorry I can't imagine what you've meant. Could you describe the envisioned improvement a little more ? Thanks.
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.