wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Organizing a large project in NetBeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Organizing a large project in NetBeans" Watch "Organizing a large project in NetBeans" New topic
Author

Organizing a large project in NetBeans

Derik Davenport
Ranch Hand

Joined: May 30, 2011
Posts: 53
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

Joined: Jan 10, 2002
Posts: 60774
    
  65

Yes, in Java files are stored in a folder hierarchy defined by the package structure. What's the problem?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3606
    
  60

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

Joined: May 30, 2011
Posts: 53
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

Joined: Jan 10, 2002
Posts: 60774
    
  65

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
 
subject: Organizing a large project in NetBeans
 
Similar Threads
jQuery- Verify I selected right element and i am unable to remove it?
Base class not fond Problem
classpath and packages
question regarding logging
log4j Issue