Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

White package icons in my Eclipse's package explorer

Tags:

java

eclipse

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.

enter image description here

My src/ folder is set is includedin the build path, so I don't get what the problem might be:

enter image description here

Thanks

like image 567
devoured elysium Avatar asked Aug 03 '11 07:08

devoured elysium


People also ask

What is the difference between Package Explorer and project Explorer?

Project Explorer additional nodes for web projects, enterprise projects, spring beans and web services. Package Explorer - Provided by the Java Development Tools (JDT) UI project, this provides a view of Java classes for the workspace.

How do I get Package Explorer back?

The package explorer & Creating a project If you do not see one, you can open it up by going to the Window menu, selecting Show View and Package Explorer. If it doesn't show up under Show View, select Other, then 'Java', then 'Package Explorer'. The Package Explorer lists each project in the current workspace.

Why does my java package have a question mark?

It means the class is not yet added to the repository.

How do I fix package explorer in Eclipse?

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.


1 Answers

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.

Hierarchical Package view in Eclipse

Switching to flat package views will allow Eclipse to display only packages that have classes in them.

like image 57
Vineet Reynolds Avatar answered Sep 19 '22 16:09

Vineet Reynolds