[英]Eclipse doesn't show projects in package explorer
I keep my workspace folder in the Dropbox folder so I can use it on different computers. 我将工作区文件夹保留在Dropbox文件夹中,以便可以在其他计算机上使用它。 Usually there isn't a problem.
通常没有问题。 Today however I opened Eclipse and found it doesn't show the projects in the package explorer.
但是,今天我打开了Eclipse,发现它没有在包资源管理器中显示项目。
I checked and it's set to the correct workspace folder. 我检查了一下,并将其设置为正确的工作区文件夹。
I tried to Import existing projects into workspace
, but Eclipse doesn't allow importing the projects because 'they already exist in the workspace' - even though they don't appear. 我试图将
Import existing projects into workspace
,但是Eclipse不允许导入项目,因为“它们已经存在于工作区中”-即使它们没有出现。
Will appreciate your help. 将感谢您的帮助。
Keep your project files in DropBox. 将项目文件保存在DropBox中。 You shouldn't share a workspace like that -- it will inevitably lead to issues like the one you describe.
您不应该共享这样的工作空间-它将不可避免地导致出现您所描述的问题。
That is, keep the project folder, along with the .project, .classpath, and .settings/ in your shared Dropbox space. 也就是说,将项目文件夹以及.project,.classpath和.settings /保留在共享的Dropbox空间中。 Create a new workspace on each computer, then "Import existing project" into each workspace, selecting your project in Dropbox, being sure to unselect "copy projects into workspace".
在每台计算机上创建一个新的工作区,然后将“导入现有项目”导入每个工作区,在Dropbox中选择您的项目,确保取消选择“将项目复制到工作区”。
I don't have idea about using dropBox - BUT - However 我没有关于使用Dropbox的想法 - 可是 -
For your question :: 您的问题 ::
I tried to Import existing projects into workspace, but Eclipse doesn't allow importing the projects because 'they already exist in the workspace' - even though they don't appear.
Possibility :: Projects are not in Eclipse explorer but a copy of it exists in the workspace
folder so eclipse is not allowing you to add the projects with same name again. 可能性 ::项目不在Eclipse Explorer中,但是
workspace
文件夹中存在项目的副本,因此eclipse不允许您再次添加具有相同名称的项目。
Solution :: Create a new workspace
and then use dropbox
to import the projects. 解决方案 ::创建一个新的
workspace
,然后使用dropbox
导入项目。
What you can also try is do 您还可以尝试的是
I seem to remember using this to "hydrate" already existing projects in my workspace into the eclipse package explorer. 我似乎记得使用此工具将工作区中已经存在的项目“混合”到eclipse包资源管理器中。
This happened to me and it was because I inadvertently filtered out some of the files in the filters option in the Package Explorer. 这发生在我身上,是因为我无意中滤除了程序包资源管理器中filter选项中的某些文件。
Inside PackageExplorer -> Small drop down on top right side -> Filters 内部PackageExplorer->右上方的小下拉菜单->过滤器
Un-select all and see if your files are now visible. 取消全选,然后查看您的文件现在是否可见。 Worked for me.
为我工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.