我在 Eclipse 中看不到我的其他项目!
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/264412/
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
I can't see my other projects in Eclipse!
提问by Dan Rosenstark
I've been using Eclipse with each project in a separate window by right clicking on a project and selecting Open in New Window. This worked fine, but suddenly... even when I close Eclipse and reopen it, the Navigator only shows one of the projects I was working on. How can I navigate back???
我一直在通过右键单击一个项目并选择在新窗口中打开来在单独的窗口中对每个项目使用 Eclipse。这工作正常,但突然之间......即使我关闭 Eclipse 并重新打开它,导航器也只显示我正在处理的项目之一。我怎样才能导航回来???
Thanks!
谢谢!
回答by Dan Rosenstark
Okay, I got it: I used Window -> New Window and in the new window everything is back to normal.
好的,我明白了:我使用了 Window -> New Window,在新窗口中一切都恢复了正常。
回答by VonC
You can also, in the package explorer, click on the arrow on the top right corner of that explorer, and select 'Top Level Elements/Working sets' (instead of 'Top Level Elements/Projects'.
您还可以在包浏览器中单击该浏览器右上角的箭头,然后选择“顶级元素/工作集”(而不是“顶级元素/项目”。
That way, you get back a working set (set of projects) view, allowing you to reopen any project of your choice in a new window.
这样,您将返回一个工作集(项目集)视图,允许您在新窗口中重新打开您选择的任何项目。
When it comes to PDT (PHP development environment), you should have useful options ion that same arrow at the top right cornet of the PHP explorer:
当谈到 PDT(PHP 开发环境)时,您应该在 PHP 资源管理器右上角的相同箭头上有有用的选项:
(and selecting the right filescan be confusing too!)
(选择正确的文件也可能令人困惑!)
回答by Guy Sensei
pretty late for an answer but for people who bump into this problem in future :
答案已经很晚了,但对于将来遇到这个问题的人来说:
This is probably a bug with eclipse. At least to me it seems so.
这可能是eclipse的一个错误。至少在我看来是这样。
The hack: Close eclipse. Delete the metadata file from the workspace folder. Restart the eclipse in same workspace. Load all the existing projects one by one from the "Create project from existing source option"
黑客:关闭日食。从工作区文件夹中删除元数据文件。在同一工作区中重新启动 eclipse。从“从现有源选项创建项目”中一一加载所有现有项目
Note: This is a non-elegant, but simple and fast hack for the lazy ones like me. I tried a few of them from above. None of them worked. This one works just fine. Yeah one thing - you will have to reset the Installed JREs to point to the JDK on your machine.
注意:对于像我这样的懒人来说,这是一个不优雅但简单快速的 hack。我从上面尝试了其中的一些。他们都没有工作。这个工作得很好。是的一件事 - 您必须重置已安装的 JRE 以指向您机器上的 JDK。
回答by Daniel Fanjul
Try to deactivate the option "Focus on Active Task". (If you have installed the Mylyn plugin)
尝试停用“专注于活动任务”选项。(如果你已经安装了 Mylyn 插件)
回答by Daniel Fanjul
'Top Level Elements/Working sets' - is not working 'Window -> New Window and in the new window everything is back to normal.' - it was ok for me at old version of Eclipse 2 weeks ago I have installed new one, and here it don't works
“顶级元素/工作集” - 不工作“窗口 -> 新窗口,在新窗口中一切都恢复正常。” - 2 周前在旧版本的 Eclipse 中对我来说没问题,我已经安装了新版本,但在这里它不起作用
回答by Scott Evernden
there's also a notion of workspaces in eclipse which can sometimes be confusing
eclipse 中还有一个工作区的概念,有时会让人感到困惑
回答by BRS13
The most easy way you can follow is switch to another workspace from eclipse (go to file menu
您可以遵循的最简单的方法是从 eclipse 切换到另一个工作区(转到文件菜单
// then switch workspace)and then import the projects(file menu // import // Existing Projects into Workspace) .
// 然后切换工作区)然后导入项目(文件菜单 // 导入 // 现有项目到工作区)。