查看源码:
选中某一个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查看即可。