简体   繁体   English

如何为Eclipse DOM插件开发类获取Javadocs?

[英]How to get Javadocs for Eclipse DOM plug-in development classes?

I am writing a plug-in for Java in Eclipse that utilizes the Eclipse DOM classes. 我正在使用Eclipse DOM类编写Eclipse中的Java插件。 I would like to see Javadocs for these classes but I am unable to do so. 我希望看到这些类的Javadocs,但我不能这样做。 For example, when I request javadocs for the method recordModifications() in class org.eclipse.jdt.core.dom.CompilationUnit , I get a message that says: 例如,当我为类org.eclipse.jdt.core.dom.CompilationUnit recordModifications()方法请求javadocs时,我收到一条消息,内容为:

The documentation location for 'recordModifications()' has not been configured. 'recordModifications()'的文档位置尚未配置。 For elements from libraries specify the Javadoc location URL on the properties page of the parent JAR ('/Applications/eclipse/plugins/org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar'). 对于库中的元素,请在父JAR的属性页面上指定Javadoc位置URL(“ / Applications / eclipse / plugins / org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar”)。

However, when I go to the properities for the JAR, it says: 但是,当我讨论JAR的适用性时,它说:

Javadoc location. Javadoc位置。 The current class path entry belongs to container 'Plug-in Dependencies' which does not allow user modifications to Javadoc locations on its entires. 当前的类路径条目属于容器“插件依赖项”,该容器不允许用户整体上对其Javadoc位置进行修改。

Any advice? 有什么建议吗?

I think what you should do is install the eclipse sources. 我认为您应该做的是安装Eclipse源。
do it by Help->Install new software...-> select Eclipse project updates update site. 通过帮助->安装新软件...->选择Eclipse项目更新更新站点来完成。 select eclipse plugin developer resources. 选择eclipse插件开发人员资源。
the sources suppose to be there. 消息来源似乎在那里。
from the sources you will be able to see also javadocs. 从源代码中,您还可以看到javadocs。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM