myeclipse如何查看源码和查看javadoc文档

来源:互联网 发布:设置淘宝域名有什么用 编辑:程序博客网 时间:2024/05/23 13:25

查看源码:

         选中某一个jar文件,如我这里选中的是struts2-core-2.1.8.1.jar,然后右键-->preferences-->Java  Source  Attachment-->external folder...,找到org\apache\struts\struts2-core\2.1.8.1\struts2-core-2.1.8.1-sources.jar        ok即可。

查看javadoc文档:

         选中某一个jar文件,我这里选中的是struts2-core-2.1.8.1.jar,然后右键-->preferences-->JavadocLocation-->Browse...,然后找到你的struts2的包的位置,file:/D:/MyEclipse插件/struts-2.1.8.1/docs/struts2-core/apidocs,安装这个路径,确定即可在MyEclipse查看javadoc文件了。

 这样你可以选中某个类名称,按F1查看即可。