Why a corrupt file is OK when using Eclipse

Hi ho!

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.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s