Eclipse项目被删除如何撤消它?或恢复 [英] Eclipse project was deleted how to undo it? or recover it

查看:903
本文介绍了Eclipse项目被删除如何撤消它?或恢复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

如果您使用从磁盘删除删除项目,请检查那么Eclipse将删除项目文件。您可能会幸运...




  • 检查您的文件系统备份。如果备份是最近的,缺少的文件可能就在那里。

  • 如果您使用版本控制存储库,请检查是否可以从最近的提交中恢复。
  • 如果您有一个(特定于平台的)已删除的文件恢复工具,您可能可以以这种方式恢复一些已删除的文件。



如果没有检查从磁盘删除,您应该可以通过使用导入>常规>现有项目进入工作区重新导入项目来恢复。 (使用浏览选择包含项目的目录,它应显示在Projects:列表中。)






对于任何人发现自己处于这种不幸的情况,课程是:




  • 使用版本控制,并确保您定期检查代码。 li>
  • 选择一个VCS,允许您拍摄当前不工作代码。

  • 常规文件系统备份是一个好主意,包括文件支持您的版本控制资料库的光盘的系统备份。 (理想情况下备份媒体应该保存在另一个建筑物中,发生火灾)。

  • 磁盘恢复软件无法依赖,以获取所有文件的所有 。 (见其他答案。)



最重要的是:




  • 删除内容时请小心。在您点击之前想想。


I have to recover a deleted Eclipse blackberry project.

解决方案

If you deleted the project with "delete from disk" checked then Eclipse will have deleted the project files. You might get lucky ...

  • Check your file system backups. If the backups are recent, the missing files may be there.
  • If you are using a version control repository, check to see if you can recover from the most recent commit.
  • If you have a (platform specific) deleted file recovery tool you may be able to recover some of the deleted files that way.

If you didn't check "delete from disk", you should be able to recover by re-importing the project using "Import > General > Existing Project into Workspace". (Use Browse to select the directory containing project and it should show up in the Projects: list.)


To anyone who finds themselves in this unfortunate situation, the lessons are:

  • Use version control, and make sure that you check in your code regularly.
  • Choose a VCS that allows you to take snapshots of "not working at the moment" code.
  • Regular file system backups are a good idea, including file system backups of the disc holding your version control repository. (Ideally the backup media should be kept in another building. Fires happen.)
  • Disk recovery software can't be relied on to get all of your files back. (See other Answers.)

And, most importantly:

  • Be careful when you delete stuff. Think before you click.

这篇关于Eclipse项目被删除如何撤消它?或恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆