A few days ago my computer froze when I was saving a file I had been working on in Eclipse a few hours. After having restarted, it turned out that the file became totally corrupt. I had not uploaded to my repository that day, so several hours of work was lost, or was it?
After some digging, it turns out that Eclipse saves all source file changes as unique files which is linked to the actual source file. This functionality is called “Local History” in Eclipse. The Local History can even be used to compare different versions of the file. Good to know if you don’t have a repository connected directly to Eclipse, or if you are working offline somewhere.