Passionate Development From Journeyman to Master

Recover Files in Eclipse

My experience with Eclipse has been generally good, but my computer at work is just not right and that I think has also affected Eclipse.

There already at least 5 occasions whereby Eclipse became non responsive for few minutes and when it actually came back, it wiped out the content of the currently opened file! Scary stuff huh?

I think I remember reading somewhere that Eclipse keeps history of files edited somewhere, looking quickly through the menus, couldn't find it.

So googling around landed me to this post:

http://www.jamescooke.info/blog_archive/recovering-files-with-eclipse-sdk-history/

To cut the story short, go to this directory to find all your files (need to do some detective work though as the filenames are not kept):

cd ~/workspace
cd .metadata/.plugins/org.eclipse.core.resources/.history

general