Reputation: 2055
With the new Eclipse release 2022-03 some (but not all) java projects changed appearance in the Project Explorer view. Although Package Presentation is set to Hierarchical, the Project Explorer view still displays long/full package names instead of showing them as a tree of sub-directories (see the screenshot)
I can't find any reference as to how to control this behavior. This also seems to be project specific as half of my existing projects in the same workspace do not exhibit this behavior and display the package hierarchy as expected like directories (see below)
I just can't find a way to control this.
Upvotes: 4
Views: 2090
Reputation: 21614
There seems to be a preset mindset bias against hierarchical presentation in Eclipse because this problem keeps reappearing at nearly every new Eclipse release. I suggest the people who develop and maintain Eclipse to change their default mindset from a flat presentation to a hierarchical mindset. Because the hierarchical presentation is more intuitive for programmers adept at large project namespaces.
This time is Eclipse 2023-12. But the solution is no longer just removing [Eclipse Faceted Project Properties].
This time I had to tickle Project Explorer this way:
Upvotes: 0
Reputation: 245
I had the same problem today... Searched for information on how to fix and nothing helped. While I noticed, what I was opened not Java perspective, but SVN. :)
Upvotes: 1
Reputation: 11
I also have had this problem always with project&package explorer. That's why I kept using Navigator which now has been removed....
The Eclipse bug report was closed as fixed but the problems persist. They mention removing from the .project file
org.eclipse.wst.common.project.facet.core.nature
But there is no such nature in my .project file to start with.
In the current state, Eclipse is pretty unworkable for me because I have a hard time finding my files in the first place with the remaining "Explorers"...
Upvotes: 1