oᴉɹǝɥɔ
oᴉɹǝɥɔ

Reputation: 2055

New Eclipse hierarchical package presentation is partially broken

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)

enter image description here

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)

enter image description here

I just can't find a way to control this.

Upvotes: 4

Views: 2090

Answers (4)

Blessed Geek
Blessed Geek

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:

  1. Click the top right three little vertical dots to get this menu.
  2. Deselect/unhighlight [Show Reference Library Nodes]
  3. Set presentation to [hierarchical]
  4. Then re-enable [Show Reference Library Nodes], if need to. Or not.

Click on image

Upvotes: 0

Arunas Jaspelkis
Arunas Jaspelkis

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. :)

https://i.sstatic.net/64vhx.png

Upvotes: 1

guest
guest

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

Filipe
Filipe

Reputation: 31

It seems an Eclipse bug as referred by @greg-449.

Until a fix is provided, the following worked for me as workaround:

  • open the project properties
  • select "Project Natures"
  • remove "Eclipse Faceted Project Properties"

Upvotes: 3

Related Questions