eclipse 如何从另一个工作区导入项目?

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

How do I import projects from another workspace?

eclipsejakarta-eeibm-rad

提问by Niklas

I started with the default workspace C:\workspace but I mange to corrupt that by removing files so now I've created a new workspace to import the files to but I don't know how to do that. Could you tell me how I import projects from another workspace? I'm using the IBM RAD which is based on eclipse.

我从默认工作区 C:\workspace 开始,但我通过删除文件来破坏它,所以现在我创建了一个新的工作区来导入文件,但我不知道该怎么做。你能告诉我如何从另一个工作区导入项目吗?我正在使用基于 eclipse 的 IBM RAD。

Thank you

谢谢

回答by Ken Chan

Here are the steps for the original eclipse :

以下是原始日食的步骤:

After switching eclipse to use the new workspace , go to File--> Import, and then choose General ---> Existing Projects into Workspace, and browse to the folder of the project that you want to import.

切换 eclipse 使用新工作区后,转到File--> Import,然后选择General ---> Existing Projects into Workspace,然后浏览到要导入的项目的文件夹。

enter image description here

在此处输入图片说明

回答by Prabhu R

In Eclipse, the steps will be:

在 Eclipse 中,步骤将是:

  1. Select "File" tab
  2. Select "Import" option in the drop down list.
  3. Select "General" in the source listed.
  4. Select "Archive File" if You have .zip/.rar file of the Project or "Existing Projects into Workspace" if You have Project in some other workspace.
  5. Browse the Archive File or root directory location.
  6. Select "Finish".
  1. 选择“文件”选项卡
  2. 在下拉列表中选择“导入”选项。
  3. 在列出的来源中选择“常规”。
  4. 如果您有项目的 .zip/.rar 文件,请选择“存档文件”,如果您在其他工作区中有项目,请选择“现有项目到工作区”。
  5. 浏览存档文件或根目录位置。
  6. 选择“完成”。

Now your project has been imported.

现在您的项目已导入。

回答by uaarkoti

I am not very familiar with RAD but if its anything like Eclipse, the projects are stored by plugins. For ex: All my java related projects are stored under

我对 RAD 不是很熟悉,但如果它像 Eclipse 一样,项目是由插件存储的。例如:我所有的 java 相关项目都存储在

workspace/.metadata/.plugins/org.eclipse.core.resources/.projects

while my other projects related to another project (Seamframework related) are stored under

而我与另一个项目(Seamframework 相关)相关的其他项目存储在

workspace/.metadata/.plugins/org.jboss.tools.seam.core/projects

The best thing would be to search your

最好的办法是搜索你的

workspace/.metadata/.plugins

folder and see if you can identify all your projects. When you do, you can import them all into your new workspace as is.

文件夹,看看您是否可以识别所有项目。当您这样做时,您可以按原样将它们全部导入到您的新工作区中。

To import the projects, once you locate them, follow the instructions posted by others here.

要导入项目,一旦找到它们,请按照其他人在此处发布的说明进行操作。

Good Luck!

祝你好运!