ECLIPSE注释模板

<?xml version="1.0" encoding="UTF-8"?>
<templates><template id="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name="gettercomment" description="Comment for getter method" context="gettercomment_context" enabled="true" deleted="false" autoinsert="false">/**
* @return 返回 ${bare_field_name}
*/</template><template id="org.eclipse.jdt.ui.text.codetemplates.settercomment" name="settercomment" description="Comment for setter method" context="settercomment_context" enabled="true" deleted="false" autoinsert="false">/**
* @param 对${bare_field_name}进行赋值
*/</template><template id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name="constructorcomment" description="Comment for created constructors" context="constructorcomment_context" enabled="true" deleted="false" autoinsert="false">/** &lt;默认构造函数&gt;
*/</template><template id="org.eclipse.jdt.ui.text.codetemplates.filecomment" name="filecomment" description="Comment for created Java files" context="filecomment_context" enabled="true" deleted="false" autoinsert="false">/*
* 文 件 名:  ${file_name}
* 版    权:  xxxx Technologies Co., Ltd. Copyright 2010-9999,  All rights reserved
* 描    述:  &lt;描述&gt;
* 修 改 人:  ${user}
* 修改时间:  ${date}
* 跟踪单号:  &lt;跟踪单号&gt;
* 修改单号:  &lt;修改单号&gt;
* 修改内容:  &lt;修改内容&gt;
*/</template><template id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment" description="Comment for created types" context="typecomment_context" enabled="true" deleted="false" autoinsert="false">/**
* &lt;一句话功能简述&gt;
* &lt;功能详细描述&gt;
*
* @author  ${user}
* @version  [版本号, ${date}]
* @see  [相关类/方法]
* @since  [产品/模块版本]
*/</template><template id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name="fieldcomment" description="Comment for fields" context="fieldcomment_context" enabled="true" deleted="false" autoinsert="false">/**
* 注释内容
*/</template><template id="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name="methodcomment" description="Comment for non-overriding methods" context="methodcomment_context" enabled="true" deleted="false" autoinsert="false">/** &lt;一句话功能简述&gt;
* &lt;功能详细描述&gt;
* ${tags}
* @see [类、类#方法、类#成员]
*/</template><template id="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name="overridecomment" description="Comment for overriding methods" context="overridecomment_context" enabled="true" deleted="false" autoinsert="false">/**
* ${tags}
*/</template><template id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name="delegatecomment" description="Comment for delegate methods" context="delegatecomment_context" enabled="true" deleted="false" autoinsert="false">/**
* ${tags}
*/</template><template id="org.eclipse.jdt.ui.text.codetemplates.newtype" name="newtype" description="Newly created files" context="newtype_context" enabled="true" deleted="false" autoinsert="true">${filecomment}
${package_declaration}

${typecomment}
${type_declaration}</template><template id="org.eclipse.jdt.ui.text.codetemplates.classbody" name="classbody" description="Code in new class type bodies" context="classbody_context" enabled="true" deleted="false" autoinsert="true">
</template><template id="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name="interfacebody" description="Code in new interface type bodies" context="interfacebody_context" enabled="true" deleted="false" autoinsert="true">
</template><template id="org.eclipse.jdt.ui.text.codetemplates.enumbody" name="enumbody" description="Code in new enum type bodies" context="enumbody_context" enabled="true" deleted="false" autoinsert="true">
</template><template id="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name="annotationbody" description="Code in new annotation type bodies" context="annotationbody_context" enabled="true" deleted="false" autoinsert="true">
</template><template id="org.eclipse.jdt.ui.text.codetemplates.catchblock" name="catchblock" description="Code in new catch blocks" context="catchblock_context" enabled="true" deleted="false" autoinsert="true">// ${todo} Auto-generated catch block
${exception_var}.printStackTrace();</template><template id="org.eclipse.jdt.ui.text.codetemplates.methodbody" name="methodbody" description="Code in created method stubs" context="methodbody_context" enabled="true" deleted="false" autoinsert="true">// ${todo} Auto-generated method stub
${body_statement}</template><template id="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name="constructorbody" description="Code in created constructor stubs" context="constructorbody_context" enabled="true" deleted="false" autoinsert="true">${body_statement}
// ${todo} Auto-generated constructor stub</template><template id="org.eclipse.jdt.ui.text.codetemplates.getterbody" name="getterbody" description="Code in created getters" context="getterbody_context" enabled="true" deleted="false" autoinsert="true">return ${field};</template><template id="org.eclipse.jdt.ui.text.codetemplates.setterbody" name="setterbody" description="Code in created setters" context="setterbody_context" enabled="true" deleted="false" autoinsert="true">${field} = ${param};</template></templates>

你可能感兴趣的:(eclipse,xml)