Gluon Mobile: Access JavaDoc from within NetBeans

2019-07-27 07:51发布

I would like to access the Javadoc documentation of Gluon using the NetBeans context menu option Show Javadoc:

NetBeans context menu

This fails with Cannot perform Show Javadoc here:

Cannot perform Show Javadoc here

Showing the Javadoc for classes belonging to the Java standard library (for example javafx.scene.Scene) works as expected. Hence, I need to set the url to the Gluon Mobile documentation (http://docs.gluonhq.com/mobile/javadoc) manually. As Gluon projects are managed by Gradle, the project settings dialog appears to have no way of specifying an url. As a workaround I tried setting the url as part of the Javadoc urls for the Java core libs (as I said: workaround) but this did not help either.

As an alternative, I tried downloading the sources from within NetBeans but this did not help, too.

enter image description here

So, the questions boils down to: Where can I specify the url to the Gluon Mobile Javadoc so that NetBeans will pick it up? Thanks in advance.

1条回答
老娘就宠你
2楼-- · 2019-07-27 08:10

Gluon Mobile Javadoc is available at the repository with the regular jar (i.e, for the current 3.0.0).

The problem with the gradle plugin for NetBeans is that it doesn't download it.

A possible solution is, according to the plugin author, this one:

For every Gluon project, edit the build.gradle file, and insert this, right after the jfxmobile plugin:

apply plugin: 'idea'
idea.module.downloadJavadoc = true

Save the file, and reload the project (right click on the Project name -> Reload Project).

Now, on the Dependencies folder, right click and select Download Sources.

After a few seconds, the javadoc jar will be added to the project, and you will have the required inline help for Gluon Mobile.

enter image description here

查看更多
登录 后发表回答