When working in Eclipse, you might see packages displayed as a single dotted line like this:
src
└ clazz.employeeinfo
But sometimes, you may want to see the actual folder hierarchy instead:
src
└ clazz
└ employeeinfo
Problem
By default, Package Explorer uses Flat Presentation, which merges sub-packages into a single dotted line.
This can make it harder to visualize the actual folder structure.
Solution
- Open Package Explorer.
- Click the view menu icon (⚙ or ▼) in the top-right corner.
- Select Package Presentation → Hierarchical.
Result
Now, packages will appear as a real folder hierarchy.
Flat mode: clazz.employeeinfo
Hierarchical mode: clazz → employeeinfo
Extra Tips
Nested Project: You can create a nested project if you want a project-inside-project structure.
Working Sets: Group multiple projects for better organization.
Top comments (0)