user2301515
user2301515

Reputation: 5107

Collapsing sub-packages from NetBeans or Eclipse in java project view

Packages I have view like

 + controller
 + framework
 + model
 - view
    Calc.java
    Main.java
 + view.main
 + view.newpackage

But i want that sub backages are collapsed into main packages like:

 + controller
 + framework
 + model
 - view
    Calc.java
    Main.java
    + main
    + newpackage

or

 + controller
 + framework
 + model
 + view

Know anybody is it possible in Eclipse and/or NetBeans? Thank you

Upvotes: 4

Views: 1092

Answers (1)

Joshua Kissoon
Joshua Kissoon

Reputation: 3309

For Netbeans (by @MadProgrammer in the comments)

Right click anywhere in the white space of the Projects tab, select View Java Packages as and select your option

For Eclipse (by @Smutje in the comments)

How to view hierarchical package structure in Eclipse package explorer

Upvotes: 6

Related Questions