简体   繁体   English

如何为Eclipse PDE安装source / javadoc?

[英]How to install source/javadoc for Eclipse PDE?

I have installed Plugin Development Environment on my Eclipse 3.8 via http://download.eclipse.org/releases/juno update site. 我已经通过http://download.eclipse.org/releases/juno更新站点在Eclipse 3.8上安装了插件开发环境。 Now in PDE projects under the "Plugin Dependencies" tree I see that all PDE JARs have attached source set to the same JARs. 现在,在“插件依赖关系”树下的PDE项目中,我看到所有PDE JAR都将源集连接到相同的JAR。 Yet, the JARs do not contain any sources - only class files. 然而,JAR不包含任何源 - 仅包含类文件。

Because of this I see no Javadoc for PDE/JFace classes and get ugly arg0, arg1, etc for auto-generated code. 因此,我看不到PDE / JFace类的Javadoc,并且为自动生成的代码获得了难看的arg0,arg1等。

Where and how can I get sources or Javadoc for PDE/JFace? 我在哪里以及如何获得PDE / JFace的源代码或Javadoc?

First, I tried to reproduce your problem. 首先,我试图重现你的问题。

  • downloaded Eclipse Platform Runtime Binary from the location you provided 从您提供的位置下载Eclipse Platform Runtime Binary
  • installed Plugin Development Tools -> Neither source nor Javadocs 安装的插件开发工具 - >既没有源也没有Javadocs

Now, the following worked for me: 现在,以下内容对我有用:

  • Help -> Install new Software 帮助 - >安装新软件
  • Work with 'The Eclipse Project Updates' (not the Juno main site!) 使用'Eclipse项目更新'(不是Juno主站点!)
  • installed 'Eclipse RCP Plugin Developer Resources' 安装'Eclipse RCP插件开发人员资源'

This gave me sources and Javadocs for all the Plugin Dependencies in a newly created 'Hello World' Plugin Project. 这为新创建的“Hello World”插件项目中的所有插件依赖项提供了源代码和Javadoc。 The size of the Eclipse installation increase by only 10 MB to a total of 116 MB. Eclipse安装的大小仅增加10 MB,总计增加到116 MB。

Thank you tobias_k, 谢谢tobias_k,

This works great but further to this I had also to install these resources to get IFolder javadoc for instance : 这很好用,但是我还要安装这些资源来获取IFolder javadoc:

  • Eclipse Platform SDK Eclipse Platform SDK
  • PDE/API Tools Envirnement Descriptions PDE / API工具Envirnement描述

Which was not installed in my Eclipse distribution. 我的Eclipse发行版中没有安装它。 Hope this helps someone ! 希望这有助于某人!

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

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