如何将在线可用的 javadoc 添加到 Netbeans 中下载的库中?

发布于 2024-09-28 12:34:27 字数 284 浏览 1 评论 0原文

也许答案很简单,但我无法在谷歌上找到有关该主题的信息。

我已从 http://code.google.com/p/macwidgets/ 下载了 MacWidgets 库。

在该网站上,您还可以找到 javadocs,我想将其集成到 Netbeans 中,以便在像普通 java api 一样输入时为我提供有关类/方法的信息。

这有可能吗?或者我是否必须下载源代码,从中创建一个项目并引用该项目而不是库?

maybe the answer is easy, but I'm unable to find information about the topic on google.

I've downloaded the MacWidgets Library from http://code.google.com/p/macwidgets/.

On the site you can also find the javadocs and I would like to integrate this into Netbeans to provide me with information about classes / methods while typing like on the normal java api.

Is this somehow possible? Or do I have to download the source, create a project out of it and reference the project instead of the libraries?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

行至春深 2024-10-05 12:34:27

我确认了 http://www.netbeans.org 上发布的最新 NetBeans IDE 7.0 M2 版本
他们为 Javadoc 的 URL 配置提供了支持。

使用此功能的步骤

  1. 首先使用“工具”>“MacWidgets JAR 文件”创建一个库。库对话框。
  2. 对于创建的库,使用 Javadoc 选项卡和 URL 按钮设置 Javadoc 的 URL,在本例中,URL 应为 http://exploding-pixels.com/google_code/javadoc_0.9.5/
  3. 现在,当在 Java 代码编辑器中引用此库中的任何类时,NetBeans 将在上下文相关代码完成下方显示 Javadoc,如下所示以及 javadoc 窗口(如果它已打开)。

此功能是最近添加的,并且仅在 NetBeans IDE 7.0 M2 版本及更高版本中可用。此功能仍然存在一些问题,并且通过右键单击项目面板库节点中的 JAR 节点直接打开 Javadoc 还无法正常工作。

更新(2011 年 4 月 29 日)
随着最新 NetBeans IDE 7.0 的发布,与来自 URL 的 Javadoc 相关的问题得到了解决。您现在可以使用 HTTP URL 为第三方库指定 Javadoc,不会出现任何问题。我报告的有关右键单击 JAR 节点的问题也已由 NetBeans 开发团队修复。

I confirmed with the latest NetBeans IDE 7.0 M2 version released on http://www.netbeans.org
They have provided support for URL configuration for the Javadoc.

Steps to use this feature

  1. First create a library for the MacWidgets JAR files using Tools > Libraries dialog box.
  2. For the created library set the URL of the Javadoc using the Javadoc tab and URL button, in this case the URL shall be http://exploding-pixels.com/google_code/javadoc_0.9.5/
  3. Now when any class from this library is referred in the Java code editor NetBeans will show Javadoc in below the context sensitive code completion as well as in the javadoc window if it is open.

This feature is recently added and only available from NetBeans IDE 7.0 M2, release and onwards. This feature is still having some issues and opening Javadoc directly by right clicking the JAR node in the project panel library node does not work yet.

UPDATE (29 Apr 2011)
With the release of latest NetBeans IDE 7.0 the issues related to Javadoc from URL are solved. You can use a HTTP URL to specify Javadoc for third party libraries without any issues now. The issue reported by me about right clicking the JAR node is also fixed by the NetBeans developer team.

梦在夏天 2024-10-05 12:34:27

作为补充,如果您使用在线 javadoc 中的剪切和粘贴,请不要忘记删除 index.html,因为它会弄乱 url。

Just as an addition, if you are using cut and paste from on-line javadocs, don't forget to remove the index.html as it messes up the url.

娇妻 2024-10-05 12:34:27

第 1 步:转到 /Libraries/.jar
第 2 步:右键单击特定的 jar 文件。
步骤3:会出现4个选项-->选择编辑
第 4 步:单击“编辑”。
第 5 步:浏览 Javadoc 并提供文档路径直至 API。

Step 1: Go to the /Libraries/.jar
Step 2: Right-click on the particular jar file.
Step 3: 4 options will appear --> select Edit
Step 4: Click on Edit.
Step 5: Browse Javadoc and provide the doc path till API.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文