my java code disappears from java file eclipse

本小妞迷上赌 提交于 2019-12-25 07:59:23

问题


I am working on android project. since i was editing specific java file my laptop shutdown unexpectedly. when i switch on my laptop and open eclipse the file in which i was working show empty. there is no code :( what should i do now ?? please help :(

for example i write this code but now its empty after computer unexpectedly shutdown

    public class ResourcesManager{
private BaseScene splashScene;
private BaseScene menuScene;
private BaseScene gameScene;
private BaseScene loadingScene;}


回答1:


Right click on the file in Package/Project Explorer and choose Replace With > Local History..

You can also try Right click on the Project and select Restore from Local History but this only restores files which have been deleted.




回答2:


Right click on the file, choose Restore from Local History. That is the only option as far as i know. Give it a try.

As @greg-449 said - Replace With > Local History.. is the perfect option



来源:https://stackoverflow.com/questions/22981405/my-java-code-disappears-from-java-file-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!