Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Linux version 2.6.38-11-generic running on amd64
Java; VM; Vendor = 1.6.0_22
Runtime = OpenJDK 64-Bit Server VM 20.0-b11
Netbeans doesn't keeps file contents or removes all content of current editing file, when PC suddenly switched off.
*** This bug has been marked as a duplicate of bug 7067 ***