Gabriel
Gabriel

Reputation: 613

How to configure Eclipse's Package Explorer to display like IntelliJ IDEA's package view?

In IntelliJ IDEA, the "Project" pane on the left has "View as:", with the following options:

If you select "Project" it shows something like Eclipse's "Package Explorer", however if you choose "Packages" and you followed following convention:

it displays a view that merges the "main" and "test" folders, thus showing you the unit tests next to their associate classes (the classes they test). This is quite handy IMO, is there a way to do this in Eclipse (3.7.2)?

Thanks!

Upvotes: 9

Views: 4420

Answers (3)

Kemal Kaya
Kemal Kaya

Reputation: 322

You can use the Web perspective to see project structure as same as with intellijenter image description here

Upvotes: 0

Squeazer
Squeazer

Reputation: 1254

This is the way to do it:

Triangle icon -> Package Presentation -> Hierarchial

Note that IntelliJ and AndroidStudio use Gradle style folders, that is src/main... and eclipse doesn't yet support Gradle and uses the older style.

Eclipse screenshot

Upvotes: 5

nitind
nitind

Reputation: 20023

Screenshots would help for those of us completely unfamiliar with IntelliJ. Have you tried the Java Browsing Perspective and its Projects and Packages Views?

Upvotes: 0

Related Questions