• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Organizing a large project in NetBeans

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, in Java files are stored in a folder hierarchy defined by the package structure. What's the problem?
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah, I thought you were asking about the other way around. (Which was confusing.)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic