How to add sources/javadoc when developing OpenESB plugins for NetBeans
By Edward Wong on Aug 12, 2008
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!