maybe the answer is easy, but I'm unable to find information about the topic on google.
I've downloaded the MacWidgets Library from http://code.google.com/p/macwidgets/.
On the site you can also find the javadocs and I would like to integrate this into Netbeans to provide me with information about classes / methods while typing like on the normal java api.
Is this somehow possible? Or do I have to download the source, create a project ou开发者_开发知识库t of it and reference the project instead of the libraries?
I confirmed with the latest NetBeans IDE 7.0 M2 version released on http://www.netbeans.org They have provided support for URL configuration for the Javadoc.
Steps to use this feature
- First create a library for the MacWidgets JAR files using Tools > Libraries dialog box.
- For the created library set the URL of the Javadoc using the Javadoc tab and URL button, in this case the URL shall be http://exploding-pixels.com/google_code/javadoc_0.9.5/
- Now when any class from this library is referred in the Java code editor NetBeans will show Javadoc in below the context sensitive code completion as well as in the javadoc window if it is open.
This feature is recently added and only available from NetBeans IDE 7.0 M2, release and onwards. This feature is still having some issues and opening Javadoc directly by right clicking the JAR node in the project panel library node does not work yet.
UPDATE (29 Apr 2011)
With the release of latest NetBeans IDE 7.0 the issues related to Javadoc from URL are solved. You can use a HTTP URL to specify Javadoc for third party libraries without any issues now. The issue reported by me about right clicking the JAR node is also fixed by the NetBeans developer team.
Just as an addition, if you are using cut and paste from on-line javadocs, don't forget to remove the index.html as it messes up the url.
Step 1: Go to the /Libraries/.jar
Step 2: Right-click on the particular jar file.
Step 3: 4 options will appear --> select Edit
Step 4: Click on Edit.
Step 5: Browse Javadoc and provide the doc path till API.
精彩评论