如何在 Eclipse 中打开现有项目?

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

How to open an existing project in Eclipse?

eclipseproject

提问by Roman

I have just created several project using Eclipse. Now restart Eclipse and want to see one of the projects. How can I do it?

我刚刚使用 Eclipse 创建了几个项目。现在重新启动 Eclipse 并希望查看其中一个项目。我该怎么做?

I have tried File -> Import -> General -> Existing Project into Workspace.

我试过文件 -> 导入 -> 常规 -> 现有项目到工作区。

Then I select the directory of the project that I want to work on and, as a result, I get an error message: "Some projects cannot be imported because they already exist in the workspace".

然后我选择我想要处理的项目的目录,结果,我收到一条错误消息:“某些项目无法导入,因为它们已存在于工作区中”。

So, it looks like that I do not need to import a project, because they are already in the workspace... But how I can "see" the projects that are in the workspace? If I create a new project, I see it as well as all other existing projects but I do not want to create a new project just to see the existing projects.

因此,看起来我不需要导入项目,因为它们已经在工作区中......但是我如何“看到”工作区中的项目?如果我创建一个新项目,我会看到它以及所有其他现有项目,但我不想创建一个新项目只是为了查看现有项目。

采纳答案by Philipp Cla?en

Maybe you have closed the project and configured the project explorer view to filter closed projects.

也许您已经关闭了项目并配置了项目资源管理器视图来过滤关闭的项目。

In that case, have a look at Filters in the Project Explorer view. Make sure that closed projects are disabled in the "Filters" view.

在这种情况下,请查看Project Explorer 视图中的 Filters。确保在“过滤器”视图中禁用了已关闭的项目。

回答by Kuldeep Jha

In case you closed multiple projects and trying to re-open all of them then in Windows->Show view-> Navigator

如果您关闭了多个项目并尝试重新打开所有项目,则在 Windows-> 显示视图-> 导航器中

回答by Vishal Yevale

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.

回答by user6041454

from Eclipse main gui: select "Window->Show View->Other->General->Project Explorer" Double-clicking on "Project Explorer" brings up the "Project Explorer" window which shows every project in your workspace. That worked for me.

从 Eclipse 主 gui:选择“窗口->显示视图->其他->常规->项目资源管理器”双击“项目资源管理器”打开“项目资源管理器”窗口,显示工作区中的每个项目。那对我有用。

Good luck.

祝你好运。

回答by Nargizakhon

I also have just faced with this problem that how to open existing file. And none of answers was helpful. That's why I tried by myself.

我也刚刚面临这个问题,即如何打开现有文件。没有一个答案是有帮助的。这就是我自己尝试的原因。

Direction: File -> Open file -> Workspace (with you had chosen first in creating your project) -> Package (which you already created your project in) -> src (source file) -> Created package ->

方向:文件 -> 打开文件 -> 工作区(您在创建项目时选择了第一个)-> 包(您已经在其中创建了项目)-> src(源文件)-> 创建的包->

And now your searching project's nodepad format. I hope it would be helpful. If any mistake here, sorry beforehand.

现在您的搜索项目的 nodepad 格式。我希望它会有所帮助。如果这里有任何错误,请提前道歉。

回答by Divyansh Chaudhary

This is How I do it.

这就是我的做法。

File -> Open Project from File System -> Existing Project in WorkSpace

文件 -> 从文件系统打开项目 -> WorkSpace 中的现有项目

回答by Mel Beff

In Eclipse, try Project > Open Project and select the projects to be opened.

在 Eclipse 中,尝试 Project > Open Project 并选择要打开的项目。

回答by Rohit

In case you closed multiple projects and trying to re-open all of them then in Project Explorer, select all projects. Go to Project-> Open Project.

如果您关闭了多个项目并尝试重新打开所有项目,然后在Project Explorer中选择所有项目。转到Project-> Open Project