eclipse 如果不小心删除了.metadata,如何获取项目列表

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5125632/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:51:58  来源:igfitidea点击:

How to get project list if delete .metadata accidentally

javaeclipse

提问by user496949

if .metadatadirectory is deleted, is there a way to recover the Eclipse project list?

如果.metadata目录被删除,有没有办法恢复 Eclipse 项目列表?

回答by Richard Szalay

After you have re-created your workspace, you can re-add projects to your workspace by following these steps:

重新创建工作区后,您可以按照以下步骤将项目重新添加到工作区:

  • Select File :: Import :: Other :: General :: Existing Projects into Workspace
  • Browsefor the root directory (if the projects share a common parent, like the workspace directory, select that)
  • Check all the projects you want to re-import and click Finish
  • 选择 File :: Import :: Other :: General :: Existing Projects into Workspace
  • Browse对于根目录(如果项目共享一个公共父目录,例如工作区目录,请选择该目录)
  • 勾选所有要重新导入的项目,点击 Finish

回答by VonC

Now that you know where the projects are stored within said metadata..., no there isn't a way to recover that list.
You need to re-import those projects in your workspace.

现在您知道项目在所述元数据中的存储位置......,没有办法恢复该列表。
您需要在工作区中重新导入这些项目。

The name of those project comes from their respective .projectfile.

这些项目的名称来自它们各自的.project文件。

回答by Mitansh Kanojiya

You could try restarting the eclipse IDE. This help to resolve issue me in my case.

您可以尝试重新启动 Eclipse IDE。这有助于解决我的问题。