Kleptine
Kleptine

Reputation: 5087

No Package Hierarchy Importing Project in Eclipse

I've been trying to import a project that works on a friend's computer, however no matter what I try, the package hierarchy is completely lost and the result is thispackages without hierarchy

Has anyone seen this issue before? I've been struggling with it for a while. Occasionally creating a new project and copying in the src folder works, but I've been unsuccesfful in my recent attempts.

Upvotes: 0

Views: 1130

Answers (3)

Kleptine
Kleptine

Reputation: 5087

Turns out we weren't including the .classpath file in the source control. Facepalm. Good answers, though.

Upvotes: 1

kevin cline
kevin cline

Reputation: 2736

The presentation of packages is a user option. Click the little down-arrow at the top of the package panel, then select "Package Presentation" from flat to hierarchical.

Upvotes: 1

Zagrev
Zagrev

Reputation: 2020

It could also be that the folders are not listed in the project as Source Folders. Go to the project properties and check that the root folders (looks like "data" and "src" here) are listed as source folders in the Build Path.

Upvotes: 0

Related Questions