是否可能从Eclipse工作区获取已删除的文件?

时间:2021-08-29 11:55:12

I have accidentally deleted a Java file from my Eclipse workspace.

我不小心从Eclipse工作区中删除了一个Java文件。

Can i recover that? It's not in the recycle bin.

我能恢复吗?它不在回收箱里。

5 个解决方案

#1


29  

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...".

右键单击项目并打开上下文菜单。选择菜单项“从本地历史中恢复…”。

#2


9  

I think local history can help you.

我认为当地历史可以帮助你。

#3


2  

  • Just recreate the same file in same location.
  • 只需在相同的位置重新创建相同的文件。
  • Right click > Replace With > Local History....
  • 右键单击>替换为>本地历史....
  • Select the appropriate file data from history.
  • 从历史中选择适当的文件数据。

#4


0  

yes... Right Click on Project in which u want to restore those files... Right Click > Restore From Local History > (Select files) > Restore

是的……右键单击要恢复这些文件的项目…右键单击>恢复从本地历史>(选择文件)>恢复

#5


0  

only "Compare With" --> "Local History" did it for me. shows dates as well. (thank god!)

只有“与…相比”——>“地方历史”为我做的。显示日期。(感谢上帝!)

#1


29  

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...".

右键单击项目并打开上下文菜单。选择菜单项“从本地历史中恢复…”。

#2


9  

I think local history can help you.

我认为当地历史可以帮助你。

#3


2  

  • Just recreate the same file in same location.
  • 只需在相同的位置重新创建相同的文件。
  • Right click > Replace With > Local History....
  • 右键单击>替换为>本地历史....
  • Select the appropriate file data from history.
  • 从历史中选择适当的文件数据。

#4


0  

yes... Right Click on Project in which u want to restore those files... Right Click > Restore From Local History > (Select files) > Restore

是的……右键单击要恢复这些文件的项目…右键单击>恢复从本地历史>(选择文件)>恢复

#5


0  

only "Compare With" --> "Local History" did it for me. shows dates as well. (thank god!)

只有“与…相比”——>“地方历史”为我做的。显示日期。(感谢上帝!)