The Source for Java Technology Collaboration
User: Password:



Tim Boudreau

Tim Boudreau's Blog

Usages tree view for NetBeans

Posted by timboudreau on September 13, 2005 at 08:38 PM | Comments (13)

Well, I am shamed - some months ago I mentioned that I'd started work on a Usages Tree view for NetBeans. I started on the project, and shelved it with the hundreds of other weekend coding projects I have. Someone recently mentioned this on JavaLobby - and that the plugin had never appeared.

So last night I wrote it, and you can download it here. AFAIK it's solid, but I wrote it from start to finish less than 10 hours ago, so a wart or two is possible.

It's testimony to NetBeans APIs that it took me about 3 hours to write (most of that time testing things), and the entire module is a single .java file plus some icon image files.

The source is in contrib/javaUsagesNavigator on netbeans.org, and of course, covered by the open source Sun Public License as is the binary.

It's probably a testament to the power of the internet that I can do this from a hotel in Beijing while I'm on a business trip :-)


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • Note the NBM is NetBeans 5.0 only - forgot to mention that.

    Posted by: timboudreau on September 13, 2005 at 08:58 PM

  • Any screenshots?

    Posted by: dhinojosa on September 13, 2005 at 10:02 PM

  • What does it do exactly? How can it be inviked?

    Posted by: herkules on September 14, 2005 at 05:14 AM

  • inviked .... hehe .... 'invoked' of course

    Posted by: herkules on September 14, 2005 at 05:24 AM

  • First all, install it from Tools | Update Center then select "Install Manually Downloaded Modules(.nbm Files) and other steps...


    Then, it will be appeared in the ComboBox of Navigator(if not, try to restart NB)


    Actually, it is the 'Caller' counterpart of Eclipse's "Call Hierarchy ", but Eclipse has one more 'Callee' option though it complicated problem field.

    I prefer the' Inheritance View' supply "Super' and "Sub" type views instead of just "Super' view.


    I just found The Usages 2 was showing the package name prefix of my own opened file when I tried to show some usages of 'java.lang.String.java' file.

    Posted by: pprun on September 14, 2005 at 06:02 AM

  • yeah, restarting NB did the trick :)

    Posted by: herkules on September 14, 2005 at 07:30 AM

  • not installing for me on the latest Q-build. But for quite a while OSX versions seem to have been very confused about installing modules - sometimes they only install afetr restarting *twice* etc. I'll persevere.

    Posted by: jportway on September 17, 2005 at 06:48 AM

  • Please file a bug with exact steps to reproduce that problem on Mac OS - that shouldn't happen.There have been some occasional issues in the past with the updater, because it's launched from a script during the restart sequence, and on Mac OS, the startup script is in a different location than on other platforms - occasionally someone makes a change to the scripts and doesn't know that - but we need to fix that before the release (I'd test it myself, but I'm in China and my Mac is in California).

    Posted by: timboudreau on September 17, 2005 at 09:13 AM

  • Beautiful! Wonderful! Thank you!

    Posted by: pdoubleya on October 06, 2005 at 12:41 AM

  • t does not seem to work for me in NB5 Beta or NB Q-Build 200510131600 on Mac OS X with Java 1.4.2. I've tried installing 5-6 times, with the "Restart Now" option a few times and the "Install Later" option also. Neither works for me.

    I'll file a bug..

    Posted by: moazam on October 18, 2005 at 02:25 AM

  • Bug filed, http://www.netbeans.org/issues/show_bug.cgi?id=67033

    Posted by: moazam on October 18, 2005 at 02:49 AM

  • This module works fine now, in NB 5 Daily build 200510191822.

    Thanks for the module btw, it's quite useful.

    -M

    Posted by: moazam on October 20, 2005 at 08:46 PM

  • This works nicely in NB 5.5.1. It is however way too slow compared to Eclipse's call hierarchy.

    A port to NB 6.0 would still be cool.

    Posted by: boerkel on November 05, 2007 at 05:49 AM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds