如何在eclipse中为source或JavaDoc附加任何jar文件,例如JavaFX的? [英] How to attach source or JavaDoc in eclipse for any jar file e.g. JavaFX?

查看:288
本文介绍了如何在eclipse中为source或JavaDoc附加任何jar文件,例如JavaFX的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在使用JavaFX。每当我将鼠标悬停在JavaFX的方法上,它会给我以下错误:



'注意:此元素既没有附加源也没有附加Javadoc,因此没有Javadoc可以找到'



我该如何解决?如何附加javadoc或源,以便我可以看到方法的描述?

解决方案

您可以配置Javadocs下载jar,基本上javadoc将直接从互联网引用。



完成步骤:


  1. 打开项目的构建路径页面(右键单击属性
    Java构建路径)。

  2. 打开库选项卡。

  3. 展开有问题的库的节点(JavaFX)。

  4. 选择JavaDoc位置,然后单击编辑。

  5. 输入文件的位置包含Javadoc。
    对于javaFX javadoc,请输入 http://docs.oracle.com /javafx/2.0/api/

对于离线javadoc,您可以从以下网址下载: http://www.oracle.com/ technetwork / java / javase / documentation / java-se-7-doc-download-435117.html



点击接受许可协议后,您可以下载 javafx-2_2_0-apidocs.zip


Presently I'm working with JavaFX. Whenever I hover over a method of JavaFX its gives me the following error:

'Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found'

How should I resolve this? How can I attach the javadoc or source so that I could see the description of the methods?

解决方案

You can configure the Javadocs with downloading jar, basically javadocs will be referred directly from internet.

Complete steps:

  1. Open the Build Path page of the project (right click, properties, Java build path).
  2. Open the Libraries tab.
  3. Expand the node of the library in question (JavaFX).
  4. Select JavaDoc location and click edit.
  5. Enter the location to the file which contains the Javadoc. Specifically for the javaFX javadoc enter http://docs.oracle.com/javafx/2.0/api/

for offline javadocs, you can download from : http://www.oracle.com/technetwork/java/javase/documentation/java-se-7-doc-download-435117.html

After clicking Accept License Agreement you can download javafx-2_2_0-apidocs.zip

这篇关于如何在eclipse中为source或JavaDoc附加任何jar文件,例如JavaFX的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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