欢迎来到天天文库
浏览记录
ID:39613936
大小:157.50 KB
页数:4页
时间:2019-07-07
《为MyEclipse添加注释模板(定制代码注释格式)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1.准备模板文件codetemplates.xml(将下面的内容复制到你的xml文件中即可使用):2、t.codetemplates.overridecomment"name="overridecomment">/*(non-Javadoc)*${see_to_overridden}*/3、templates.fieldcomment"name="fieldcomment">/****/4、">/******************************************************************<p>*@CLASS:${type_name}*@DESCRIPTION:*@AUTHOR:formice*@VERSION:v1.0*@DATE:${date}${time}*</p>**<p>*@MODIFYLOG:*@AUTHOR:formice*@VERSION:v2.0*@MODIFYDATE:*</p>*5、****************************************************************/6、.constructorcomment"name="constructorcomment">/***createainstance${enclosing_type}.*${tags}*/7、xt.codetemplates.gettercomment"name="gettercomment">/***@returnthe${bare_field_name}*/8、detemplates.filecomment"name="filecomment">/***@FILE:${file_name}*@PACKAGE:${package_name}*@COPYRIGHT:copyright(c)${year},RightsReserved*@COMPANY:*@DESCIPTION:*@AUTHOR:formice*@VERSION:v1.0*@DATE:${date}${time}*/
2、t.codetemplates.overridecomment"name="overridecomment">/*(non-Javadoc)*${see_to_overridden}*/3、templates.fieldcomment"name="fieldcomment">/****/4、">/******************************************************************<p>*@CLASS:${type_name}*@DESCRIPTION:*@AUTHOR:formice*@VERSION:v1.0*@DATE:${date}${time}*</p>**<p>*@MODIFYLOG:*@AUTHOR:formice*@VERSION:v2.0*@MODIFYDATE:*</p>*5、****************************************************************/6、.constructorcomment"name="constructorcomment">/***createainstance${enclosing_type}.*${tags}*/7、xt.codetemplates.gettercomment"name="gettercomment">/***@returnthe${bare_field_name}*/8、detemplates.filecomment"name="filecomment">/***@FILE:${file_name}*@PACKAGE:${package_name}*@COPYRIGHT:copyright(c)${year},RightsReserved*@COMPANY:*@DESCIPTION:*@AUTHOR:formice*@VERSION:v1.0*@DATE:${date}${time}*/
3、templates.fieldcomment"name="fieldcomment">/****/4、">/******************************************************************<p>*@CLASS:${type_name}*@DESCRIPTION:*@AUTHOR:formice*@VERSION:v1.0*@DATE:${date}${time}*</p>**<p>*@MODIFYLOG:*@AUTHOR:formice*@VERSION:v2.0*@MODIFYDATE:*</p>*5、****************************************************************/6、.constructorcomment"name="constructorcomment">/***createainstance${enclosing_type}.*${tags}*/7、xt.codetemplates.gettercomment"name="gettercomment">/***@returnthe${bare_field_name}*/8、detemplates.filecomment"name="filecomment">/***@FILE:${file_name}*@PACKAGE:${package_name}*@COPYRIGHT:copyright(c)${year},RightsReserved*@COMPANY:*@DESCIPTION:*@AUTHOR:formice*@VERSION:v1.0*@DATE:${date}${time}*/
4、">/******************************************************************<p>*@CLASS:${type_name}*@DESCRIPTION:*@AUTHOR:formice*@VERSION:v1.0*@DATE:${date}${time}*</p>**<p>*@MODIFYLOG:*@AUTHOR:formice*@VERSION:v2.0*@MODIFYDATE:*</p>*
5、****************************************************************/6、.constructorcomment"name="constructorcomment">/***createainstance${enclosing_type}.*${tags}*/7、xt.codetemplates.gettercomment"name="gettercomment">/***@returnthe${bare_field_name}*/8、detemplates.filecomment"name="filecomment">/***@FILE:${file_name}*@PACKAGE:${package_name}*@COPYRIGHT:copyright(c)${year},RightsReserved*@COMPANY:*@DESCIPTION:*@AUTHOR:formice*@VERSION:v1.0*@DATE:${date}${time}*/
6、.constructorcomment"name="constructorcomment">/***createainstance${enclosing_type}.*${tags}*/7、xt.codetemplates.gettercomment"name="gettercomment">/***@returnthe${bare_field_name}*/8、detemplates.filecomment"name="filecomment">/***@FILE:${file_name}*@PACKAGE:${package_name}*@COPYRIGHT:copyright(c)${year},RightsReserved*@COMPANY:*@DESCIPTION:*@AUTHOR:formice*@VERSION:v1.0*@DATE:${date}${time}*/
7、xt.codetemplates.gettercomment"name="gettercomment">/***@returnthe${bare_field_name}*/8、detemplates.filecomment"name="filecomment">/***@FILE:${file_name}*@PACKAGE:${package_name}*@COPYRIGHT:copyright(c)${year},RightsReserved*@COMPANY:*@DESCIPTION:*@AUTHOR:formice*@VERSION:v1.0*@DATE:${date}${time}*/
8、detemplates.filecomment"name="filecomment">/***@FILE:${file_name}*@PACKAGE:${package_name}*@COPYRIGHT:copyright(c)${year},RightsReserved*@COMPANY:*@DESCIPTION:*@AUTHOR:formice*@VERSION:v1.0*@DATE:${date}${time}*/
此文档下载收益归作者所有