java开发工具一个很好的注释模板

<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="filecomment_context" deleted="false" description="Comment for created Java files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.filecomment" name="filecomment"/><template autoinsert="false" context="overridecomment_context" deleted="false" description="Comment for overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name="overridecomment"/><template autoinsert="false" context="fieldcomment_context" deleted="false" description="Comment for fields" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name="fieldcomment">
</template><template autoinsert="false" context="typecomment_context" deleted="false" description="Comment for created types" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment">/**
* @description 功能描述:
* @author 作 者: 周志伟
* @param 参 数: ${tags}
* @createdate 建立日期: ${date}${time}
* @projectname 项目名称: ${project_name}
* @packageclass 包及类名: ${package_name}.${file_name}
*/</template><template autoinsert="false" context="methodcomment_context" deleted="false" description="Comment for non-overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name="methodcomment">/**
* @projectname 项目名称: ${project_name}
* @packageclass 包及类名: ${package_name}.${file_name}
* @description 功能描述:
* @author 作 者: 周志伟
* @param 参 数: ${tags}
* @return 返回类型: ${return_type}
* @createdate 建立日期: ${date}${time}
*/</template><template autoinsert="true" context="delegatecomment_context" deleted="false" description="Comment for delegate methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name="delegatecomment">/**
* ${tags}
* ${see_to_target}
*/</template><template autoinsert="false" context="constructorcomment_context" deleted="false" description="Comment for created constructors" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name="constructorcomment">/**&#13;
* @projectname 项目名称: ${project_name}
* @packageclass 包及类名: ${package_name}.${file_name}
* @description 功能描述: &#13;
* @author 作 者: 周志伟&#13;
* @param 参 数:${tags} &#13;
* @return 返回类型: &#13;
* @createdate 建立日期:${date}${time}&#13;
*/</template><template autoinsert="true" context="settercomment_context" deleted="false" description="Comment for setter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.settercomment" name="settercomment">/**
* @param ${param} the ${bare_field_name} to set
*/</template><template autoinsert="true" context="gettercomment_context" deleted="false" description="Comment for getter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name="gettercomment">/**
* @return the ${bare_field_name}
*/</template></templates>

 

用此模板的时候只需引入此模板即可,

 

posted @ 2014-10-08 17:11  也许还年轻  阅读(410)  评论(0编辑  收藏  举报