帮帮我!恢复Eclipse文件 [英] Help! Recover Eclipse file

查看:92
本文介绍了帮帮我!恢复Eclipse文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用eclipse,当我关闭eclipse,它要求我保存一个文件,我按yes和eclipse关闭。当我打开我的电脑,我看到驱动器只剩下3个字节,我感觉不好。我去我的文件哦,我的上帝,这是完全空白,大小是0字节! :(



我需要该文件,可以免费恢复程序可以在这种情况下工作吗?

解决方案

有时,Eclipse会保留对您编辑的文件所做的更改,并不总是有效,但值得一试:




  • 在您的(包,项目,导航器)资源管理器中找到您的文件。

  • 右键单击您的文件,查找菜单进行比较...(我推荐比较,你的情况下,文件现在是空的没有关系)

  • 从子菜单中选择本地历史记录



如果你很幸运,一直在使用Eclipse来编辑文件,你应该找到几个条目,查看它们,你可以找到内容。



这帮助了我无数次,多次挽救了我的屁股,但是,我每次都用这种方法,我总是觉得用棒球棒打我的头,以前没有对源代码管理系统进行更改。 / p>

祝你好运,如果这不工作,我担心这不会对你有太大帮助: - (



---编辑---
有些东西可以帮助使这个技巧更有用。



你可以更改信息量Eclipse保持本地历史,转到您的偏好,然后通用 - >工作区 - >本地历史(这里的靛蓝可能与其他版本不同)。如果你倾向于轻轻的头发或者燃烧午夜的油太多,这将有助于你修复第二天,这个错误修复你坚持在睡觉前完成。


I'm using eclipse, when i close eclipse, it ask me save a file, I press yes and eclipse shuts down. When I open my computer I see that the drive only has 3 bytes left, and I get a bad feeling. I go to my file and oh my god, it's totally blank, size is 0 byte! :(

I need that file back, can a free recovery program can work on this case?

解决方案

Sometimes Eclipse keeps the changes it made to the files you edit. Does not always work but it's worth a try :

  • Find you file in your (package, project, navigator) explorer.
  • Right click on your file and look for the menus to compare... (I recommend Compare though in your case it will not matter since the file is now empty)
  • Choose Local History... from the sub menu

If you are lucky and had been using Eclipse to edit the file you should find a few entries there. Look them up, chances are you will find the content.

This has helped me countless times and saved my ass on many occasions. However, every times I resort to it I always feel like hitting my head with a baseball bat for not commiting changes to the source control system earlier.

good luck, if that does not work I fear the SO will not be of much help to you :-(

--- EDIT --- Little something that can help make this trick a tad bit more useful.

you can change the amount of information Eclipse keeps in local history, go to your preferences and then general->Workspace->Local History (Indigo here, may be different on other versions). If you tend to be light headed or burn the midnight oil a bit too much this will help you repair the next day that bug fix you insisted on finishing before going to sleep.

这篇关于帮帮我!恢复Eclipse文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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