4

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

user2301515
  • 4,903
  • 6
  • 30
  • 46
  • possible duplicate of [How to view hierarchical package structure in Eclipse package explorer](http://stackoverflow.com/questions/3915961/how-to-view-hierarchical-package-structure-in-eclipse-package-explorer) – Smutje Aug 22 '14 at 06:47
  • 3
    Right click anywhere in the white space of the `Projects` tab, select `View Java Packages as` and select your option... – MadProgrammer Aug 22 '14 at 06:49
  • It's not a duplicate. I asked that i didn't found such info. – user2301515 Aug 22 '14 at 06:54
  • Thank you i found it: http://netbeanside61.blogspot.com/2011/06/hierarchy-view-in-project-panel-of.html – user2301515 Aug 22 '14 at 07:01
  • @MadProgrammer: You should have mentioned that you are referring to Netbeans. – Joachim Rohde Aug 22 '14 at 07:05
  • @JoachimRohde Now you're just spoiling my fun ;) – MadProgrammer Aug 22 '14 at 07:11
  • @MadProgrammer Well, if it makes you feel better: you teached me something new, even though I'm using Netbeans since version 3.x :-) – Joachim Rohde Aug 22 '14 at 07:13
  • @JoachimRohde I stumbled across it some time after they switched the views...never bothered using it as I like the current view...had to go scrounging for it to post the comment :P – MadProgrammer Aug 22 '14 at 07:15

1 Answers1

5

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

Community
  • 1
  • 1
Joshua Kissoon
  • 3,269
  • 6
  • 32
  • 58