简体   繁体   English

Eclipse不会在工作区中显示项目

[英]Eclipse does not show projects in workspace

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). 我已经打开了Eclipse工作区,我从另一台计算机上转移了它,但它没有在包资源管理器中显示任何项目(应该有很多项目)。 Still project's folders are in workspace folder. 仍然项目的文件夹位于工作区文件夹中。

The new machine where I transfered the workspace runs Windows 7 that has the read-only folders issue ( more here ). 我转移工作区的新机器运行的Windows 7具有只读文件夹问题( 此处更多 )。 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. 也就是说,在该操作系统上创建的所有文件夹都是只读的,并且无法以任何方式删除只读属性。

Eclipse originally refused to open the workspace at all saying that .metadata folder of the workspace is read only. Eclipse最初拒绝打开工作区,说工作区的.metadata文件夹是只读的。 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拒绝使用只读文件夹,项目文件夹也是只读的。

Did somebody have same problem? 有人有同样的问题吗? How did you solve it? 你是怎么解决的? Any suggestions are wellcome. 任何建议都很好。

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. 将它们移动到另一个文件夹(例如在桌面中),确保您的工作区文件夹为空,然后尝试从桌面上的临时文件夹中导入它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM