Eclipse:我的所有项目从Project Explorer中消失 [英] Eclipse: All my projects disappeared from Project Explorer

查看:1489
本文介绍了Eclipse:我的所有项目从Project Explorer中消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看起来我的项目(除了一个)从Project Explorer的视图中消失。



我使用的是Eclipse Java EE IDE 对于Web开发人员。

版本: Helios服务版本2

构建ID:20110218-0911



注意:所有的项目都存在于文件系统上。



如何把它们带回来?任何想法?

解决方案

这发生在我身上。我仍然不知道如何,但原因是我的工作区元数据已经损坏,可能是因为Eclipse被不正确地关闭。解决方案如在此解释,将是:



注意,步骤2&如果Eclipse没有崩溃,但是没有显示任何项目,3是可选的。


  1. 关闭Eclipse。

  2. 200新评新新新新新旗新新新新旗新新旗新新旗新新新新旗新新旗新新旗新新旗旗新1992新新新新旗新新旗新新旗新新旗200新新新新旗新新旗200新新新新旗200新新新新旗200新新新新旗200新新新新旗200新新新新旗200新新新新旗200新新新新旗200新新新新新旗200新新新新新旗200新新新新旗200新新新新新旗200新新新新新旗200新新新新旗200新新新新新旗名新旗旗
  3. 启动Eclipse

  4. 执行文件 - >导入

  5. 常规 - 将现有项目导入工作区

  6. 单击选择根目录字段并浏览到工作区文件夹中的每个子文件夹,然后导入。

对我来说X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 200 X- 200 200 X- 200 200 X- 200 200 X- 200 200 X- / strong>这个答案现在很老了,现在可以有更好的解决方案了。 p45454545新新新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新:由于它相当简单,我建议先尝试antonagestam的解决方案。不过,这个问题最近重新出现在我身上,这个解决方案在我的情况下并没有奏效。但也没有干扰这个解决方案。


It seems like all my projects (except one) disappeared from the view Project Explorer.

I'm using Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 2
Build id: 20110218-0911

Note: all the projects are present on the file system.

How to bring them back? Any ideas?

解决方案

This happened to me. I'm still not sure how, but the reason was that my workspace meta data had become corrupted, probably due to Eclipse being improperly shutdown. The solution, as explained here, is to:

Note, steps 2 & 3 are optional if Eclipse isn't crashing, but just not showing any projects.

  1. Close Eclipse.
  2. cd /home/user/workspace/.metadata/.plugins
  3. mv org.eclipse.core.resources org.eclipse.core.resources_bak
  4. Start Eclipse
  5. Do File->Import
  6. General->Existing Projects into Workspace
  7. Click the "Select root directory" field and browse to each subfolder in your workspace folder, and import.

For me, this was very tedious, since I had several dozen projects in my workspace, but it's the only solution I found short of restoring my entire workspace from a backup.

Edit: This answer is now quite old, and better solutions may now exist. Although I haven't had need to try it, I recommend attempting @antonagestam's solution first, as others have suggested it may be faster and more effective.

Edit: Since it's fairly simple, I'd recommend trying antonagestam's solution first. However, this problem recently re-occurred for me, and that solution did not work in my case. But neither did it interfere with this solution.

这篇关于Eclipse:我的所有项目从Project Explorer中消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆