Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Organizing a large project in NetBeans

 
Derik Davenport
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question revolves around the fact that Netbeans puts all the packages in a single alphabetical list, rather than in a hierarchical structure.

As far as Java is concerned, a package like a.b.c has no hierarchical relationship to a.b. Specifically, an import a.b.* will not include the classes in the package named a.b.c. But the files on the hard drive are stored hierarchically. It keeps them organized. I want that same organization in my IDE.

I would appreciate the advice and opinions of more experienced Java programmers.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, in Java files are stored in a folder hierarchy defined by the package structure. What's the problem?
 
Martin Vajsar
Sheriff
Pie
Posts: 3747
62
Chrome Netbeans IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Netbenas can actually show you packages in the hierarchical structure. Right-click in an empty space of the Projects window and choose desired display in the View Java packages as submenu (the last item in the context menu).

(Took me some time to discover this... )
 
Derik Davenport
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Martin Vajsar wrote:Right-click in an empty space of the Projects window and choose desired display in the View Java packages as submenu

Oh thank you Martin. Many times thanks. This has been annoying me for a year as this project got slowly larger.

Bear Bibeault wrote: What's the problem?
The problem was that NetBeans didn't seem to be doing that. Now it does.


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, I thought you were asking about the other way around. (Which was confusing.)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic