Using Eclipse I accidentally deleted the wrong folder on my file system and lost hundreds of java files on my mac yesterday.
I am using a second mac to connect to my mac via firewire. My mac appears as an external disk on the second mac. I am running data recovery programs on the second mac to ensure that none of the deleted files are overwritten by writes to the file system on my mac.
I've tried a couple data recovery programs (Disk Drill, Data Rescue 3), but they don't seem to be able to recognize .java files.
Has anyone had a good experience recovering deleted .java files on a mac?
Eclipse usually keeps internal history. You should be able to restore the files using Eclipse itself, if the files were deleted in Eclipse: In context menu of you project you should see "Restore from Local History.." item.
On the other hand I would recommend to always use SCM tools (such as Git, Mercural etc). This way you will never lose your code. Practially every SCM tool this days has a very good Eclipse plugin.