Eclipse - 在资源管理器中看不到项目

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

Eclipse - No project visible in explorer

androideclipse

提问by anujprashar

I am using Eclipse Helios 3.6.2for android development. Today when I opened eclipse these is no projects visible in package explorer.Even though projects folders are present in directory. What can be reason for it? Is it missing some config file. How to make all projects in workspace visible again in explorer of eclipse.

Eclipse Helios 3.6.2用于安卓开发。今天,当我打开 eclipse 时,package explorer.即使项目文件夹存在于目录中,也看不到这些项目。这是什么原因?是否缺少一些配置文件。如何使工作区中的所有项目在 eclipse 的资源管理器中再次可见。

Thanks

谢谢

回答by triad

Your project list is stored at:

您的项目列表存储在:

`<workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\`

So you might want check that file to see if your projects are there. Sometimes selecting Top Level Elements -> Projects reveals additional projects that haven't been assigned a working set.

因此,您可能需要检查该文件以查看您的项目是否在那里。有时选择顶级元素 -> 项目会显示尚未分配工作集的其他项目。

回答by Mohamed

I experienced this error! Just go to File->import and browse to your workspace directory as root directory of existing project and click finish. This will load all your projects in the selected directory i,e: workspace in this case to the package explorer :)

我遇到了这个错误!只需转到 File->import 并浏览到您的工作区目录作为现有项目的根目录,然后单击完成。这会将所选目录中的所有项目加载到包资源管理器中:)

回答by Upendra Gupta

Open Eclipse IDE

打开 Eclipse IDE

Click To File > Switch Workspace >Select Previous Workspace from List

单击到文件 > 切换工作区 > 从列表中选择上一个工作区

回答by aioobe

I had the same issue with my Package Explorer view. Turns out the view looks different in debug perspective and normal perspective:

我的包资源管理器视图也有同样的问题。事实证明,调试视角和普通视角的视图看起来不同:

Debug perspective (no projects visible)

调试透视图(无项目可见)

enter image description here

在此处输入图片说明

Ordinary Java perspective (projects visible)

普通Java视角(项目可见)

enter image description here

在此处输入图片说明

回答by mayur rahatekar

I hope you know the workspace path. When you open the eclipse first time It will ask path for workspace. If you know that go to that folder and check whether all the project that you have created are their if it's all their then just Import all the project. I think you change the workspace path that's why.

我希望你知道工作区路径。当您第一次打开 Eclipse 时,它​​会询问工作区的路径。如果您知道,请转到该文件夹​​并检查您创建的所有项目是否都是他们的,如果都是他们的,则只需导入所有项目。我认为您更改了工作区路径,这就是原因。

回答by Harvinder Singh

  1. Go to File
  2. Import
  3. select general or type of projects you wish to load
  4. browse your work space
  5. select all the projects
  6. click FINISH and you are done
  1. 转到文件
  2. 进口
  3. 选择您要加载的一般或项目类型
  4. 浏览您的工作空间
  5. 选择所有项目
  6. 点击完成,你就完成了

回答by user750066

None of these helped, the correct method for me was:

这些都没有帮助,对我来说正确的方法是:

file -> import ->general ->existing projects into workspace-> coose your directory with projects in "select root directory" ; click finish and you've it there!

文件 -> 导入 -> 常规 -> 现有项目到工作区 -> 将您的目录与“选择根目录”中的项目合并;点击完成,你就在那里!

回答by Zaxxon

For me, I had to do

对我来说,我必须做

  1. File > Import
  2. Maven > Existing Maven Projects
  3. Press Next
  4. Select Root Directory, select desired project and press "Finish"
  1. 文件 > 导入
  2. Maven > 现有的 Maven 项目
  3. 按下一步
  4. 选择根目录,选择所需的项目,然后按“完成”

I am guessing, since the Project was Maven, it had to be imported as its type.

我猜,因为项目是 Maven,所以它必须作为它的类型导入。

回答by sikandar

  1. go to window
  2. show view
  3. project explorer
  4. double click on them
  1. 去窗口
  2. 显示视图
  3. 项目浏览器
  4. 双击它们