Eclipse tips on source code
Try to attach source codes for *.jar, then the auto-generated source (such as method) will comes with meaningful name, for example, A generated execute(...) method of Struts Action:
without attach source:
public ActionForward execute(lots of ugly arg0, arg1.... !!!
ActionMapping arg0,
ActionForm arg1,
HttpServletRequest arg2,
HttpServletResponse arg3
throws Exception {
}
after attach Struts source codes to struts.jar:
public ActionForward execute(whew! much better !
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
}
Another tip is when you attach source codes, you can view java docs without assigning javadoc location. Eclipse will parse javadocs that inside attached source codes for you.
0 Comments:
張貼留言
<< Home