[英]Java files disappeared in Eclipse after exporting
I was working on a project in Eclipse that has several classes and one Interface. 我正在Eclipse中进行一个项目,该项目具有多个类和一个Interface。 I decided to export it as a jar so that I can run it on another machine.
我决定将其导出为jar,以便可以在另一台计算机上运行它。
This went just fine. 一切都很好。 However, when I went back to Eclipse, it suddenly removed all of my file one by one as soon as I tried to edit one of them.
但是,当我回到Eclipse时,突然我尝试编辑其中一个文件时,它突然将所有文件一一删除。 Now there is only one file left and it's not even my main.
现在只剩下一个文件了,甚至不是我的主文件。 I had everything in the default workspace directory and now only that one file remains.
我将所有内容都保存在默认的工作空间目录中,现在只剩下一个文件了。
Can I undo it? 我可以撤消吗?
Something similar just happened to me a while ago, Eclipse has the option to recover files no matter if you have a version control or not... 不久前我发生了类似的事情,无论您是否具有版本控制,Eclipse都可以选择恢复文件...
make right click in the project and make a " Restore from local history " 在项目中单击鼠标右键,然后执行“ 从本地历史记录还原 ”
a new window with all accidentally removed files will appear and you can undo the mess :) 将会出现一个新窗口,其中包含所有意外删除的文件,您可以撤消混乱:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.