How to add sources/javadoc when developing OpenESB plugins for NetBeans

So you're excited about developing that NetBeans plug-in for some OpenESB JBI component and have followed the instructions at WorkingWithNetBeansSources.  Since you don't want to open the myriad NetBeans IDE native modules projects just to Navigate | Go to Source (Ctrl-Shift-B) or view relevant Javadoc (Ctrl-Spacebar) for standard NetBeans classes, you have configured your trusty NetBeans 6.1 IDE Tools | NetBeans Platform | Sources/Javadoc tabs to point to the respective ZIPs (downloadable here: platform sources, javadoc), but yet no luck viewing source code nor Javadoc for NetBeans classes while editing a native (or to be native) NetBeans module project!  What gives?!

Well, if you happened to right-click Properties on one of those native module projects, you would have noticed that the Libraries | NetBeans Platform textfield does not reflect your trusty NB 6.1 IDE but rather the actual NetBeans-being-built's platform and that's why those Sources and Javadoc configuration you made above don't work!

Alas, the solution is trivial so just create a new NetBeans Platform to reflect the one being used by going to Tools | NetBeans Platform | Add Platform... and browse to <...>/main/nbbuild/netbeans (if you're using NetBeans main branch Mercurial repository) and add it as the Platform Folder.  Now, repeat assigning those platform sources and Javadoc ZIPs to the respective Sources/Javadoc tabs for this new platform and voila, it's all good again!

HTH

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Edward Wong

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today