我的 Eclipse 包浏览器中的白色包图标
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6923002/
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
White package icons in my Eclipse's package explorer
提问by devoured elysium
I am getting these strange white package icons in my testing project. From what I've seen @ http://jamie.ideasasylum.com/images/icons.pdf, they signal "empty packages", but I don't know why.
我在我的测试项目中得到了这些奇怪的白色包图标。从我看到的@ http://jamie.ideasasylum.com/images/icons.pdf来看,它们表示“空包”,但我不知道为什么。
My src/
folder is set is includedin the build path, so I don't get what the problem might be:
我的src/
文件夹设置为包含在构建路径中,所以我不明白问题可能是什么:
Thanks
谢谢
回答by Vineet Reynolds
This is most likely because you have chosen hierarchical package views. The hierarchical package view will show empty package icons for packages without any classes.
这很可能是因为您选择了分层包视图。分层包视图将显示没有任何类的包的空包图标。
Switching to flat package views will allow Eclipse to display only packages that have classes in them.
切换到平面包视图将允许 Eclipse 仅显示包含类的包。
回答by Kabindra Joshi
Create at least one class in the 'empty' package 'white package' and refresh the project, the color should change to Golden.
在“空”包“白色包”中至少创建一个类并刷新项目,颜色应更改为金色。
When Package does not contain any class, then the color is white.
当 Package 不包含任何类时,颜色为白色。