Eclipse 中的“打开项目”按钮被禁用

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

"Open Project" button in Eclipse is disabled

eclipse

提问by user590444

I have just downloaded Eclipse, started it and found that "Open Project" button is disabled. So how do I open my project =) ?

我刚刚下载了 Eclipse,启动它并发现“打开项目”按钮被禁用。那么如何打开我的项目 =) ?

采纳答案by Yun

"Open Project" button will only be enabled when there is a project selected in the active view. If you just downloaded Eclipse and started on a brand new workspace without any project created or imported, you would need to use File > New > Project... or File > Import... to add a project in your workspace.

只有在活动视图中选择了一个项目时,才会启用“打开项目”按钮。如果您刚刚下载了 Eclipse 并在没有创建或导入任何项目的情况下启动了一个全新的工作区,则需要使用 File > New > Project... 或 File > Import... 在您的工作区中添加一个项目。

回答by Amir Dashti

Go to File->Import and select "General" and from the list select "Existing Projects into Workspace" then click "Next". After that in the next dialog, for the root directory, if your project exists in the "D:\Projects\Android\Test" folder (for example), type "D:\Projects\Android" and click on "Refresh" button. You will see your project(s) in the result list. Click on "Finish" and done.

转到 File->Import 并选择“General”,然后从列表中选择“Existing Projects into Workspace”,然后单击“Next”。之后在下一个对话框中,对于根目录,如果您的项目存在于“D:\Projects\Android\Test”文件夹中(例如),请键入“D:\Projects\Android”并单击“刷新”按钮. 您将在结果列表中看到您的项目。单击“完成”并完成。

回答by ayush sharma

The Reason is that if anyone is using the IDE for the first time the option of "open Project" is unavailable ,thus one may have to migrate to file->import->general->Existing Projects into Work space.That's it and browse up to that location as well select the type of project that means if you have unzipped type of files then select "select Root directory" option and if you have a zip version of it then select "select archive file" option.

原因是如果有人第一次使用IDE,“打开项目”选项不可用,因此可能需要迁移到文件->导入->常规->现有项目到工作空间。就这样浏览直到该位置,还选择项目类型,这意味着如果您有解压缩文件类型,则选择“选择根目录”选项,如果您有它的 zip 版本,则选择“选择存档文件”选项。