Download NetBeans!

20051027 Thursday October 27, 2005

Integrate into the Editor: NetBeans API Javadoc and Sources

I'm obviously an idiot because only yesterday I realized how easy it is to install NetBeans API Javadoc in the IDE. It's as simple as going to the Update Center and selecting 'API Documentation':

It might take you a while to download the API Documentation module:

But then working with the APIs is much easier (notice how the Javadoc even includes info about the entries required in the layer.xml file):

By the way, if you download the netbeans-5_0-beta-src-ide_sources.zip from here, your world becomes even better: add the ZIP file to the Sources tab in the NetBeans Platform Manager (as shown below)...

...and you'll not only be able to read the Javadoc, but you'll also be able to jump to the actual source code:

Alternatively, just hold down the Ctrl key, and then anything that has sources gets a cool hyperlink (once you move your mouse over it) that you can click on:

(By the way, wouldn't it be cool if I could click Alt+something and then all the hyperlinks in the current source file would be shown? That way, I'd be able to scroll through the file and see all the hyperlinks, instead of having to move my mouse over an item in order to expose its hyperlink. I should make an enhancement request for this.)

Either way, you'll then be able to read the sources of the selected piece of code:

Note, though, that putting the downloaded ZIP file in the Sources tab (i.e., non-extracted ZIP file) has only been possible since yesterday (see issue 62773 for details).

Oct 27 2005, 01:43:00 AM PDT Permalink

Trackback URL: http://blogs.sun.com/geertjan/entry/i_m_obviously_and_idiot
Comments:

The "Development Update Center" does not appear in my Wizard. Any ideas where it is? I can't find any info on this on the netbeans site. I downloaded the Netbeans 5 beta for OSX.

Posted by Henry Story on October 27, 2005 at 10:21 AM PDT #

Does anything appear at all? Or nothing? Check your proxies. In the Update Center, click Proxy Configuration, and then set the proxy there. Other than that, I don't know... If there's still a problem, create an issue in Issuezilla.

Posted by Geertjan on October 27, 2005 at 10:32 AM PDT #

I *think* the Development Update Center shows up for Netbeans daily builds, not Q-Builds. -M

Posted by Moazam on October 27, 2005 at 11:06 AM PDT #

Aha. In that case, get a daily build here and let us know if that works better for you, Henry!

Posted by Geertjan on October 27, 2005 at 11:08 AM PDT #

After much playing around I have it working. There may have been some incompatibility with my old .netbeans folder. I removed it and then things started working.

It is working with build 200510261858. I loaded the zip file sources only (no need for the api update) into the platform manager and it now gives me method completion and javadoc.

It would be really nice if there were a key shortcut to get inline javadoc directly without having to go through method completion.

Posted by Henry Story on October 30, 2005 at 11:38 AM PST #

Note, you can also add the Development Update Center to the Beta. Under the Advanced Options, IDE Configuration > System, right-click Autoupdate Types and choose New > General Update Center. Set the Name to Development Update Center. The default URL is already that of the development update center, so you should be all set.

Posted by Brian Leonard on November 28, 2005 at 01:17 PM PST #

Thanks Brian, good tip. Didn't know this.

Posted by Geertjan on November 28, 2005 at 09:11 PM PST #

I thought I might update this blog page with the lastest <stable> source file zip link: http:/www.netbeans.info/downloads/start.php?f_id=20168. Hope this helps anyone.

Posted by Ron Hatt on June 03, 2007 at 01:08 AM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed