在我的工作区中打开一个 Eclipse 项目

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

Opening an Eclipse project already in my workspace

eclipseproject

提问by Casebash

If I have an Eclipse project already in my workspace (say downloaded from version control), how can I open it in Eclipse?

如果我的工作区中已经有一个 Eclipse 项目(比如从版本控制下载),我如何在 Eclipse 中打开它?

回答by houman001

It is kind of funny/misleading, but Eclipse doesn't provide an "Open" command. You need to use "File"->"Import"->"General"->"Import Existing Project" to be able to use your existing project.

这有点有趣/误导,但 Eclipse 不提供“打开”命令。您需要使用“文件”->“导入”->“常规”->“导入现有项目”才能使用现有项目。

you have to uncheck 'Copy projects into workspace'if the project is already in the workspace

您必须取消选中'Copy projects into workspace'该项目是否已经在工作区中

回答by interboy

If you are using Eclipse for Mac, you have to create a new project with the same name as the folder that contains the project, which is already in the workspace. Do nothing else (no imports), just finish the wizard, and you will find all the subfolders and files in the new project created.

如果您使用的是 Eclipse for Mac,则必须创建一个与包含该项目的文件夹同名的新项目,该文件夹已在工作区中。什么都不做(不导入),只需完成向导,您将在创建的新项目中找到所有子文件夹和文件。

It's very misleading though, I had the same problem and it got me half an hour to solve it.

但是,这是非常具有误导性的,我遇到了同样的问题,我花了半个小时来解决它。

回答by McLovin

I had the same Problem as Nuraiz but i was able to work around.

我和 Nuraiz 有同样的问题,但我能够解决。

You have to select the project you want to open and uncheck the 'Copy projects into workspace'. Then switch the radio button either from "Select root directory" to "Select archive file" or the other way round and switch it back afterwards.

您必须选择要打开的项目并取消选中“将项目复制到工作区”。然后将单选按钮从“选择根目录”切换到“选择存档文件”,或者反过来,然后再切换回来。

You can now magically select your project or maybe it is already selected.

您现在可以神奇地选择您的项目,或者它可能已经被选中。

回答by Alex

It is already open, but your windows "Package explorer" and "Project explorer" are closed and you do not see it. Go to Tab Window then Show view and chose any of them.

它已经打开,但您的窗口“包资源管理器”和“项目资源管理器”已关闭,您看不到它。转到选项卡窗口然后显示视图并选择其中任何一个。

回答by SteveScm

You will see the same in Project Explorer. As If you do any checkout , it will fall in Project explorer syn with your workspace.

您将在 Project Explorer 中看到相同的内容。如果您进行任何结帐,它将与您的工作区同步在项目资源管理器中。

回答by Joolah

like this:

像这样:

Importing existing projects You can use the Import Wizard to command link import an existing project into workspace.

导入现有项目 您可以使用导入向导命令链接将现有项目导入工作区。

From the main menu bar, select command link File > Import.... The Import wizard opens. Select General > Existing Project into Workspace and click Next. Choose either Select root directory or Select archive file and click the associated Browse to locate the directory or file containing the projects. Under Projects select the project or projects which you would like to import. Click Finish to start the import.

从主菜单栏中,选择命令链接文件 > 导入...。导入向导打开。选择 General > Existing Project into Workspace 并单击 Next。选择 Select root directory 或 Select archive file 并单击关联的 Browse 以找到包含项目的目录或文件。在项目下选择您要导入的一个或多个项目。单击完成开始导入。