Search code examples
netbeanscodenameonejavadoccode-completion

Codename One - googlemaps cn1lib Javadocs and code completion with NetBeans


I'm using NetBeans and I imported the Google Map's native cn1lib in my Codename One project, according to this guide (Configuration section):

https://www.codenameone.com/blog/new-improved-native-google-maps.html.

I can't find API documentation of MapContainer class; moreover, code completion for that class does not work in NetBeans.

How can I do?


EDIT

After restarting NetBeans, the code completion works.

However, the API documentation does not work. In fact, inside code completion pop-up, I can read the following message:

Javadoc not found. Either Javadoc documentation for this item does not exist or there is no attached Javadoc to the JAR file containing this item.

What's wrong? Does Javadoc documentation exist for the MapContainer class?


Solution

  • I saw that myself and chalked it off to NetBeans flakiness. Turns out that it isn't...

    The GoogleMaps cn1lib we have in the extension manager is missing the stubs file that should exist as a part of the cn1lib and provides that JavaDoc completion.

    This is my locally built cn1lib in NetBeans:

    enter image description here

    This is the one I downloaded from the extension manager:

    enter image description here

    You will notice the missing stubs.zip in the latter which is due to a bad build script from one of our engineers. We'll try to fix this and update the lib. Once we do that you should be able to download an update from the extension manager and refresh libs again to get the new version.