Geertjan's Blog

  • November 4, 2005

Visual Overview of Java Files

Geertjan Wielenga
Product Manager
Sandip put together another interesting graphical plug-in module for NetBeans. After you use the 'Show Java File Structure' keystroke, menu item, or toolbar button, the structure of the selected Java file is shown in a tree hierarchy—all classes, interfaces (including inner), methods, and fields are shown (click to enlarge):

You can filter the tree by typing the prefix to match. For example, in the screenshot above, all the getters were found by typing get in the text field at the top of the display. The Case Sensitive checkbox controls if the prefix matching is case sensitive or not. When you click on a node, the Java editor opens with the cursor on the selected item.

It's a pretty cool module—and at the bottom of the display you see a small legend with a tooltip to indicate what each icon means. So, in one glance you can see what's going on in your file. Pretty nifty, I think. Sandip and I are planning to write an article on this module soon.

Join the discussion

Comments ( 6 )
  • VVS Friday, November 4, 2005

    This feature is one of the very few remaining things present in Eclipse but missing in Netbeans.

    I use it extensively in Eclipse and really miss it in NetBeans. Yes, Navigator is good, but I prefer a pop-up right before my eyes when I need it rather than docking window. Also, I think is better to be able to filter out non-needed methods when you try to type smth like "get", then only methods starting with get are shown, very convenient. In navigator one just jumps from method to method without reducing the amount of presented entires.

    Bwt, in Eclipse the keybinding is Ctrl-O.

    I hope this module will get into NetBeans standard distribution!

  • Kovica Monday, November 7, 2005
    Where can I get this module ? I like it. :)
  • Geertjan Monday, November 7, 2005
    Hi VVS and Kovica, I've just sent off an e-mail to Sandip, asking him how people can get hold of his module. As soon as I know, I'll blog about it. (Sandip's also written a few other really cool modules, such as one where a graph is drawn showing you all your module dependencies.) Hopefully we'll be able to get hold of all of them...
  • Michel Graciano Monday, November 7, 2005

    please, post every modules that you have!! :D

    I think that NB site should has a good place to post modules, more easier that contrib repository. I think that some like a plugin Firefox site, with more details about these.

  • Claudio Miranda Monday, November 7, 2005
    As Michel Graciano said, would be very good, and I would suggest a way to rate plugins and add comments (like firefox extensions website do), thanks
  • Geertjan Tuesday, November 8, 2005
    Sandip just made this module generally available. Click here.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.