Gluon Mobile:从NetBeans中访问JavaDoc [英] Gluon Mobile: Access JavaDoc from within NetBeans

查看:149
本文介绍了Gluon Mobile:从NetBeans中访问JavaDoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用NetBeans上下文菜单选项 Show Javadoc :

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

此操作失败,并显示无法在此处执行Show Javadoc :

显示属于Java标准库的类的Javadoc(例如javafx.scene.Scene)可以正常工作.因此,我需要将网址设置为Gluon Mobile文档( http://docs.gluonhq.com/mobile/javadoc ).由于Gluon项目由Gradle管理,因此项目设置对话框似乎无法指定url.作为一种解决方法,我尝试将URL设置为Java核心库的Javadoc URL的一部分(如我所说:解决方法),但这也无济于事.

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.

作为替代方案,我尝试从NetBeans中下载源,但这也无济于事.

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

因此,问题归结为:我可以在哪里指定Gluon Mobile Javadoc的URL,以便NetBeans可以获取它?预先感谢.

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.

推荐答案

Gluon Mobile Javadoc可在带有常规jar的存储库中使用(即,对于当前的

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

用于NetBeans的gradle插件的问题是它没有下载它.

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

一种可能的解决方案是,根据插件 author ,这个:

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

对于每个Gluon项目,编辑build.gradle文件,并将其插入在jfxmobile插件之后:

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).

现在,在Dependencies文件夹上,右键单击并选择Download Sources.

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

几秒钟后,将将javadoc jar添加到项目中,并且您将获得Gluon Mobile所需的内联帮助.

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

这篇关于Gluon Mobile:从NetBeans中访问JavaDoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆