Sunday, May 23, 2010

How to recover deleted file in Eclipse ?


Suppose you have deleted any file by mistake. That file was not checked in in the SVN/CVS and your manager/team lead calling you for status........ what the hell is........ but if you used Eclipse then no need to worry.This tutorial explain you how to do that.....
You can recover deleted file in eclipse means deleted files can be restored from the local history of Eclipse.
Following are the screen shots that show how to recover deleted files in eclipse.

1) Let this is your folder structure of Eclipse Project.





2) Let you have deleted ThreadDemo.java File from Eclipse IDE by mistake.






3) You clicked on the OK button, Now you realized that it was not useless file. You need it. now what to do........





4) Finally you have deleted file..... don't worry, eclipse is with you........ It store all files in its temp folder for some time. We can recover from Eclipse. Now start operation.........
    right clicks on the Eclipse project and select "Restore From local history"



5) You'll get list of all deleted files in eclipse ........., Select the files that you like to Restore and clicks on the "Restore" button.




6) Thanks god it is eclipse...... :)