即使项目在那里,Eclipse 也没有显示我的工作区文件夹中的任何项目?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15318914/
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
Eclipse is not showing any projects from my workspace folder even the projects are there?
提问by Baji Shaik
We are using subclips as a SVN client for our Eclipse and I have successfully checked-out the list of projects to 'C:\workspace\myprojects' folder then I have opened the eclipse and given the workspace location as 'C:\workspace\myprojects' but it's not showing any projects even there are projects, Why?
我们使用 subclips 作为 Eclipse 的 SVN 客户端,我已成功将项目列表签出到“C:\workspace\myprojects”文件夹,然后我打开了 Eclipse 并将工作区位置指定为“C:\workspace\” myprojects' 但即使有项目也没有显示任何项目,为什么?
So I have imported all the projects one by one through the eclipse feature and now i can able to see the projects but my question why should i need to import even i have given the eclipse workspace folder as 'C:\workspace\myprojects'?
所以我已经通过 eclipse 功能一个一个地导入了所有项目,现在我可以看到这些项目,但我的问题是为什么我需要导入,即使我已经将 eclipse 工作区文件夹指定为“C:\workspace\myprojects”?
NOTE: But the sampe scenario is working fine in others machine, i.e they no need to import all the projects one by one when they have given the Eclipse workspace folder as 'C:\workspace\myprojects'.
注意:但是 sampe 场景在其他机器上运行良好,即当他们将 Eclipse 工作区文件夹指定为“C:\workspace\myprojects”时,他们不需要一一导入所有项目。
Regards, Baji
问候, 巴吉
回答by Zagrev
Eclipse uses the metadata to determine which projects are in the workspace. So you have to import the projects into the workspace even though they already reside in the same directory in the filesystem. Just call File / Import / Existing Projects from the filesystem and select the projects that are already there. It's a pain, but it works.
Eclipse 使用元数据来确定工作区中有哪些项目。因此,您必须将项目导入工作区,即使它们已经位于文件系统的同一目录中。只需从文件系统调用 File / Import / Existing Projects 并选择已经存在的项目。这很痛苦,但它有效。
回答by Amer Hadi
Just because you have a project inside the workspace directory doesn't mean Eclipse opens it or even sees it automatically. You must use File - Import - General - Import existing project into workspace to have your project in Eclipse.
仅仅因为您在工作区目录中有一个项目并不意味着 Eclipse 会打开它甚至自动看到它。您必须使用 File - Import - General - Import existing project into workspace 才能在 Eclipse 中拥有您的项目。
回答by Baji Shaik
Actually some of eclipse configuration file was deleted. hence it was not able to show.
实际上一些eclipse配置文件被删除了。因此它无法显示。
finally after reverting the it I can able to see all the projects.
最后在恢复它之后我可以看到所有的项目。