PhantomReference
PhantomReference

Reputation: 738

Eclipse: Package explorer not showing packages in flat structure

enter image description here

Please see the image above. Why is eclipse not showing packages in the 'flat' structure as opposed to the 'hierarchical' structure?

Upvotes: 1

Views: 3229

Answers (2)

user3040614
user3040614

Reputation:

Make sure that your project of type Java or J2EE. As packages are related to Java specific projects only and not related to other types of projects, say C++, you won't see packages in flat structure if your project is not of type Java.

Upvotes: 2

PhantomReference
PhantomReference

Reputation: 738

I just realized what happened.

It is because the project is NOT a Java project. Since packages are specific to Java, Eclipse does not show the packages in the flat structure in this case.

Upvotes: 0

Related Questions