Restore Deleted Files in Eclipse IDE

2020-05-14 14:33发布

Two days ago, I deleted five Java files in Eclipse IDE and now I need them. I tried to restore them from the local history. I restored only two of them. When I right click on the other files and then click restore from local history, I get the error message No additional members found in local history. How can I restore those three files?

8条回答
家丑人穷心不美
2楼-- · 2020-05-14 15:10

In case you are using VCS like SVN or GIT you can just recreate the file with same name and in the same location that's enough.

查看更多
劳资没心,怎么记你
3楼-- · 2020-05-14 15:24

Go to Eclipse Menu Bar , and click Edit, and then click Undo Delete Resource. Each time you click "Undo Delete Resource" it brings back resources that have been deleted. I am not sure if you can recover deleted resources, if you try to recover after the machine has been restarted since you deleted your resource.

You don't wanna run into this several times, to be safe please always use version control like Git, SVN, Mercurial.

查看更多
登录 后发表回答