How to install source/javadoc for Eclipse PDE?

岁酱吖の 提交于 2019-11-28 08:05:42

问题


I have installed Plugin Development Environment on my Eclipse 3.8 via http://download.eclipse.org/releases/juno update site. Now in PDE projects under the "Plugin Dependencies" tree I see that all PDE JARs have attached source set to the same JARs. Yet, the JARs do not contain any sources - only class files.

Because of this I see no Javadoc for PDE/JFace classes and get ugly arg0, arg1, etc for auto-generated code.

Where and how can I get sources or Javadoc for PDE/JFace?


回答1:


First, I tried to reproduce your problem.

  • downloaded Eclipse Platform Runtime Binary from the location you provided
  • installed Plugin Development Tools -> Neither source nor Javadocs

Now, the following worked for me:

  • Help -> Install new Software
  • Work with 'The Eclipse Project Updates' (not the Juno main site!)
  • installed 'Eclipse RCP Plugin Developer Resources'

This gave me sources and Javadocs for all the Plugin Dependencies in a newly created 'Hello World' Plugin Project. The size of the Eclipse installation increase by only 10 MB to a total of 116 MB.




回答2:


Thank you tobias_k,

This works great but further to this I had also to install these resources to get IFolder javadoc for instance :

  • Eclipse Platform SDK
  • PDE/API Tools Envirnement Descriptions

Which was not installed in my Eclipse distribution. Hope this helps someone !



来源:https://stackoverflow.com/questions/12484617/how-to-install-source-javadoc-for-eclipse-pde

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!