Is it possible to get the deleted file from Eclipse workspace?
Asked Answered
R

5

13

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

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

Rose answered 27/3, 2011 at 18:5 Comment(0)
B
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...".

Bakki answered 27/3, 2011 at 18:7 Comment(0)
I
9

I think local history can help you.

Ionosphere answered 27/3, 2011 at 18:7 Comment(0)
P
3
  • Just recreate the same file in same location.
  • Right click > Replace With > Local History....
  • Select the appropriate file data from history.
Posh answered 30/11, 2013 at 15:54 Comment(2)
Restore from Local History... works without having the recreate the file.Danieldaniela
@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.Posh
H
0

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

Hyperphysical answered 31/8, 2014 at 6:11 Comment(0)
C
0

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

Cerebrate answered 3/11, 2014 at 12:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.