Eclipse 不显示工作区中的项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13828353/
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 does not show projects in workspace
提问by Rasto
I have opened Eclipse workspace that I transfered from another computer but it does not show any projects in package explorer (there should be a lot of them). Still project's folders are in workspace folder.
我打开了从另一台计算机传输的 Eclipse 工作区,但它没有在包资源管理器中显示任何项目(应该有很多)。仍然项目的文件夹位于工作区文件夹中。
The new machine where I transfered the workspace runs Windows 7 that has the read-only folders issue (more here). That is all the folders that are created on that OS are read-only and that the read-only atribute cannot be removed in any way.
我转移工作区的新机器运行 Windows 7,它有只读文件夹问题(更多在这里)。也就是说,在该操作系统上创建的所有文件夹都是只读的,并且不能以任何方式删除只读属性。
Eclipse originally refused to open the workspace at all saying that .metadata folder of the workspace is read only. After turning user control to the lowest level it opens the workspace but it acts as if it did not contain any projects. I think this is because Eclipse refuses to work with read-only folders and project folders are also read-only.
Eclipse 最初根本拒绝打开工作区,说工作区的 .metadata 文件夹是只读的。将用户控制转到最低级别后,它会打开工作区,但它的行为就像不包含任何项目一样。我认为这是因为 Eclipse 拒绝使用只读文件夹并且项目文件夹也是只读的。
Did somebody have same problem? How did you solve it? Any suggestions are wellcome.
有人有同样的问题吗?你是怎么解决的?任何建议都是受欢迎的。
回答by Ozan Atmar
It is not enough to move your projects in the workspace path folder, you also need to import them. And because of they are in your path folder, you can't import them again because it will say you still have them in your workspace. Move them to another folder (for example in desktop), be sure your workspace folder is empty, and then try to import them from your temporary folder in desktop.
将您的项目移动到工作区路径文件夹中是不够的,您还需要导入它们。而且由于它们在您的路径文件夹中,您无法再次导入它们,因为它会说您的工作区中仍然有它们。将它们移动到另一个文件夹(例如在桌面中),确保您的工作区文件夹为空,然后尝试从桌面的临时文件夹中导入它们。