是否可以从 Eclipse 工作区中获取已删除的文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5451175/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is it possible to get the deleted file from Eclipse workspace?
提问by karlphillip
I have accidentally deleted a Java file from my Eclipse workspace.
我不小心从 Eclipse 工作区中删除了一个 Java 文件。
Can i recover that? It's not in the recycle bin.
我可以恢复吗?它不在回收站中。
回答by karlphillip
Check this page: How to restore deleted files in Eclipse
检查此页面:如何在 Eclipse 中恢复已删除的文件
Suppose you have deleted any file by mistake. No need to worry. Deleted files can be restored from the history.
How to Do:
Right click on the project and open the context menu. And go for the menu item "Restore from Local History...".
假设您误删除了任何文件。不用担心。删除的文件可以从历史记录中恢复。
怎么做:
右键单击项目并打开上下文菜单。并转到菜单项“从本地历史恢复...”。
回答by Hertzel Guinness
I think local historycan help you.
我认为当地历史可以帮助你。
回答by KrishPrabakar
- Just recreate the samefile in samelocation.
- Right click >
Replace With
>Local History...
. - Select the appropriate file data from history.
- 只需在相同位置重新创建相同的文件。
- 右键单击
Replace With
>>Local History...
。 - 从历史记录中选择适当的文件数据。
回答by Rahul
yes... Right Click on Project in which u want to restore those files... Right Click > Restore From Local History > (Select files) > Restore
是...右键单击您要还原这些文件的项目...右键单击>从本地历史记录还原>(选择文件)>还原
回答by NBApps
only "Compare With" --> "Local History" did it for me. shows dates as well. (thank god!)
只有“比较”-->“本地历史”为我做了。也显示日期。(感谢上帝!)