如何使用 Java EE Eclipse 打开项目?

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

how to open project with Java EE Eclipse?

javaeclipse

提问by Hyman Ma

Like this:

像这样:

alt text

替代文字

the "open project" item's color is grey.

“打开项目”项目的颜色是灰色的。

回答by Pascal Thivent

Project > Open Projectand Project > Close Projectmay no be what you think, they apply to projects that are already in the workspace and are closed/open respectively. From the Eclipse documentation:

Project > Open ProjectProject > Close Project可能不是你想的那样,它们适用于已经在工作区中的项目,分别是关闭/打开的。从Eclipse 文档

When a project is closed, it can no longer be changed in the Workbench and its resources no longer appear in the Workbench, but they do still reside on the local file system. Closed projects require less memory. Also, since they are not examined during builds, closing a project can improve build time.

当项目关闭时,它不能再在工作台中更改,其资源也不再出现在工作台中,但它们仍然驻留在本地文件系统中。关闭的项目需要更少的内存。此外,由于在构建过程中不会检查它们,因此关闭项目可以缩短构建时间。

You are probably looking for File > New > Projectthat would open the following wizard (select the type of project you want to create and follow the steps):

您可能正在寻找文件 > 新建 > 项目,它会打开以下向导(选择要创建的项目类型并按照步骤操作):

alt text
(source: eclipse.org)

替代文字
(来源:eclipse.org

To import an existing Eclipse project, use File > Import > Existing Project into Workspace.

要导入现有的 Eclipse 项目,请使用File > Import > Existing Project into Workspace

回答by NG.

You need to first create a project using File -> New Project. Then the project you've created must be closed before you can then open it.

您需要首先使用 File -> New Project 创建一个项目。然后,您创建的项目必须先关闭,然后才能打开它。