简体   繁体   中英

How do I restore a deleted file in Eclipse?

Long story short, I accidently deleted a project which I thought was something else, but not, and I deleted the file from the disk. How do I get the file back? Im running Recuva, but are there any other file recovery methods out there?

Another way to do it (besides martinhh's answer), is to:

  • Right click the project
  • Restore from Local History

Eclipse has a local history that is stored in

.metadata/.plugins/org.eclipse.core.resources/.history/

I am not sure, if these files are deleted together with the project. I would recommend you check the files by date if you remember when you made the last changes. Or if you remember eg a class name you can use grep.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM