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.
Source>>Format will operate on any directory, recursively and format all source files it finds through the Favorites Window. There is no way to Undo this unless the source files were open in the editor. This is not a good feature and should be disabled for Favorites or some sort of warning and Undo ability. Product Version: NetBeans IDE 7.3 (Build 201302132200) Java: 1.7.0_13; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
I have added a confirmation dialog: http://hg.netbeans.org/jet-main/rev/c0d55a1efe9e Regarding the undo, the feature piggy-backs on the standard refactoring undo (it creates a refactoring session and registers a transaction that can undo the formatting. But the refactoring infrastructure does not enable the undo action while the Favourites tab is selected. I think the global refactoring undo should work from any place in the IDE. Ralph, could you please take a look? Thanks.
Integrated into 'main-silver', will be available in build *201307192300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c0d55a1efe9e User: Jan Lahoda <jlahoda@netbeans.org> Log: #226117: requesting confirmation before recursive formatting.
Verified Fixed in: Product Version: NetBeans IDE Dev (Build 201308022300) Updates: Updates available Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)