13

I have accidentally deleted a Java file from my Eclipse workspace.

Can i recover that? It's not in the recycle bin.

karlphillip
  • 92,053
  • 36
  • 243
  • 426

5 Answers5

35

Check this page: How to restore deleted files in Eclipse

Suppose you have deleted any file by mistake. No need to worry. Deleted files can be restored from the history.

How to Do:

Right click on the project and open the context menu. And go for the menu item "Restore from Local History...".

Community
  • 1
  • 1
karlphillip
  • 92,053
  • 36
  • 243
  • 426
9

I think local history can help you.

Hertzel Guinness
  • 5,912
  • 3
  • 38
  • 43
3
  • Just recreate the same file in same location.
  • Right click > Replace With > Local History....
  • Select the appropriate file data from history.
KrishPrabakar
  • 2,824
  • 2
  • 31
  • 44
  • `Restore from Local History...` works without having the recreate the file. – greg-449 Nov 30 '13 at 16:32
  • @greg449 - Thanks for letting me know; I was not finding this `Restore from Local History...` in my earlier version of Eclipse, but the above option always worked, so thought of putting it here. – KrishPrabakar Dec 04 '13 at 13:03
0

yes... Right Click on Project in which u want to restore those files... Right Click > Restore From Local History > (Select files) > Restore

Rahul
  • 1
  • 1
0

only "Compare With" --> "Local History" did it for me. shows dates as well. (thank god!)

NBApps
  • 511
  • 5
  • 12