Eclipse注释模板设置详解
<div class="clear"></div>
<p>前言:上一篇文章<a href="http://swiftlet.net/archives/1192" target="_blank">《Eclipse添加注释简介》</a>给大家简单介绍了一下在注释的相关设置,本文将会进一步讲解有关注释的内容。<br>
设置注释模板的入口:Window->Preference->Java->Code Style->Code Template 然后展开Comments节点就是所有需设置注释的元素。本文现就每一个元素逐一给大家介绍一下。
文件(Files)注释标签:
<div id="crayon-5a38d468d5256665615777" class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-plain-wrap"></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5a38d468d5256665615777-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d5256665615777-2">2</div><div class="crayon-num" data-line="crayon-5a38d468d5256665615777-3">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d5256665615777-4">4</div><div class="crayon-num" data-line="crayon-5a38d468d5256665615777-5">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d5256665615777-6">6</div><div class="crayon-num" data-line="crayon-5a38d468d5256665615777-7">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d5256665615777-8">8</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5a38d468d5256665615777-1"><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d5256665615777-2"><span class="crayon-c">* @Title: ${file_name}</span></div><div class="crayon-line" id="crayon-5a38d468d5256665615777-3"><span class="crayon-c">* @Package ${package_name}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d5256665615777-4"><span class="crayon-c">* @Description: ${todo}(用一句话描述该文件做什么)</span></div><div class="crayon-line" id="crayon-5a38d468d5256665615777-5"><span class="crayon-c">* @author ${user}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d5256665615777-6"><span class="crayon-c">* @date ${date}</span></div><div class="crayon-line" id="crayon-5a38d468d5256665615777-7"><span class="crayon-c">* @version V1.0</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d5256665615777-8"><span class="crayon-c">*/</span></div></div></td>
</tr>
</tbody></table>
</div>
</div>
类型(Types)注释标签(类的注释):
<div id="crayon-5a38d468d527c118097996" class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-plain-wrap"></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5a38d468d527c118097996-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d527c118097996-2">2</div><div class="crayon-num" data-line="crayon-5a38d468d527c118097996-3">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d527c118097996-4">4</div><div class="crayon-num" data-line="crayon-5a38d468d527c118097996-5">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d527c118097996-6">6</div><div class="crayon-num" data-line="crayon-5a38d468d527c118097996-7">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d527c118097996-8">8</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5a38d468d527c118097996-1"><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d527c118097996-2"><span class="crayon-c">* @ClassName: ${type_name}</span></div><div class="crayon-line" id="crayon-5a38d468d527c118097996-3"><span class="crayon-c">* @Description: ${todo}(这里用一句话描述这个类的作用)</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d527c118097996-4"><span class="crayon-c">* @author ${user}</span></div><div class="crayon-line" id="crayon-5a38d468d527c118097996-5"><span class="crayon-c">* @date ${date}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d527c118097996-6"><span class="crayon-c">*</span></div><div class="crayon-line" id="crayon-5a38d468d527c118097996-7"><span class="crayon-c">* ${tags}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d527c118097996-8"><span class="crayon-c">*/</span></div></div></td>
</tr>
</tbody></table>
</div>
</div>
字段(Fields)注释标签:
<div id="crayon-5a38d468d5296692283883" class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-plain-wrap"></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5a38d468d5296692283883-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d5296692283883-2">2</div><div class="crayon-num" data-line="crayon-5a38d468d5296692283883-3">3</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5a38d468d5296692283883-1"><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d5296692283883-2"><span class="crayon-c">* @Fields ${field} : ${todo}(用一句话描述这个变量表示什么)</span></div><div class="crayon-line" id="crayon-5a38d468d5296692283883-3"><span class="crayon-c">*/</span></div></div></td>
</tr>
</tbody></table>
</div>
</div>
构造函数(Constructor)标签:
<div id="crayon-5a38d468d52a4888410526" class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-plain-wrap"></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5a38d468d52a4888410526-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52a4888410526-2">2</div><div class="crayon-num" data-line="crayon-5a38d468d52a4888410526-3">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52a4888410526-4">4</div><div class="crayon-num" data-line="crayon-5a38d468d52a4888410526-5">5</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5a38d468d52a4888410526-1"><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52a4888410526-2"><span class="crayon-c">* 创建一个新的实例 ${enclosing_type}.</span></div><div class="crayon-line" id="crayon-5a38d468d52a4888410526-3"><span class="crayon-c">*</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52a4888410526-4"><span class="crayon-c">* ${tags}</span></div><div class="crayon-line" id="crayon-5a38d468d52a4888410526-5"><span class="crayon-c">*/</span></div></div></td>
</tr>
</tbody></table>
</div>
</div>
方法(Methods)标签:
<div id="crayon-5a38d468d52ab622745202" class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-plain-wrap"></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5a38d468d52ab622745202-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52ab622745202-2">2</div><div class="crayon-num" data-line="crayon-5a38d468d52ab622745202-3">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52ab622745202-4">4</div><div class="crayon-num" data-line="crayon-5a38d468d52ab622745202-5">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52ab622745202-6">6</div><div class="crayon-num" data-line="crayon-5a38d468d52ab622745202-7">7</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5a38d468d52ab622745202-1"><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52ab622745202-2"><span class="crayon-c">* @Title: ${enclosing_method}</span></div><div class="crayon-line" id="crayon-5a38d468d52ab622745202-3"><span class="crayon-c">* @Description: ${todo}(这里用一句话描述这个方法的作用)</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52ab622745202-4"><span class="crayon-c">* @param ${tags} 参数</span></div><div class="crayon-line" id="crayon-5a38d468d52ab622745202-5"><span class="crayon-c">* @return ${return_type} 返回类型</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52ab622745202-6"><span class="crayon-c">* @throws</span></div><div class="crayon-line" id="crayon-5a38d468d52ab622745202-7"><span class="crayon-c">*/</span></div></div></td>
</tr>
</tbody></table>
</div>
</div>
覆盖方法(Overriding Methods)标签:
<div id="crayon-5a38d468d52b1467472603" class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-plain-wrap"></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5a38d468d52b1467472603-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52b1467472603-2">2</div><div class="crayon-num" data-line="crayon-5a38d468d52b1467472603-3">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52b1467472603-4">4</div><div class="crayon-num" data-line="crayon-5a38d468d52b1467472603-5">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52b1467472603-6">6</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5a38d468d52b1467472603-1"><span class="crayon-c">/* (非 Javadoc)</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52b1467472603-2"><span class="crayon-c">* <p>Title: ${enclosing_method}</p></span></div><div class="crayon-line" id="crayon-5a38d468d52b1467472603-3"><span class="crayon-c">* <p>Description: </p></span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52b1467472603-4"><span class="crayon-c">* ${tags}</span></div><div class="crayon-line" id="crayon-5a38d468d52b1467472603-5"><span class="crayon-c">* ${see_to_overridden}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52b1467472603-6"><span class="crayon-c">*/</span></div></div></td>
</tr>
</tbody></table>
</div>
</div>
代理方法(Delegate Methods)标签:
<div id="crayon-5a38d468d52b7940469732" class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-plain-wrap"></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5a38d468d52b7940469732-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52b7940469732-2">2</div><div class="crayon-num" data-line="crayon-5a38d468d52b7940469732-3">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52b7940469732-4">4</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5a38d468d52b7940469732-1"><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52b7940469732-2"><span class="crayon-c">* ${tags}</span></div><div class="crayon-line" id="crayon-5a38d468d52b7940469732-3"><span class="crayon-c">* ${see_to_target}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52b7940469732-4"><span class="crayon-c">*/</span></div></div></td>
</tr>
</tbody></table>
</div>
</div>
getter方法标签:
<div id="crayon-5a38d468d52bd231432322" class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-plain-wrap"></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5a38d468d52bd231432322-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52bd231432322-2">2</div><div class="crayon-num" data-line="crayon-5a38d468d52bd231432322-3">3</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5a38d468d52bd231432322-1"><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52bd231432322-2"><span class="crayon-c">* @return ${bare_field_name}</span></div><div class="crayon-line" id="crayon-5a38d468d52bd231432322-3"><span class="crayon-c">*/</span></div></div></td>
</tr>
</tbody></table>
</div>
</div>
setter方法标签:
<div id="crayon-5a38d468d52c3969738430" class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-plain-wrap"></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5a38d468d52c3969738430-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c3969738430-2">2</div><div class="crayon-num" data-line="crayon-5a38d468d52c3969738430-3">3</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5a38d468d52c3969738430-1"><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c3969738430-2"><span class="crayon-c">* @param ${param} the ${bare_field_name} to set</span></div><div class="crayon-line" id="crayon-5a38d468d52c3969738430-3"><span class="crayon-c">*/</span></div></div></td>
</tr>
</tbody></table>
</div>
</div>
要实现上面的注释模板,这需要将下面的配置文件导入就可以了:
<div id="crayon-5a38d468d52c9302656812" class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style="margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-plain-wrap"></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-2">2</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-3">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-4">4</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-5">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-6">6</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-7">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-8">8</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-9">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-10">10</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-11">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-12">12</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-13">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-14">14</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-15">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-16">16</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-17">17</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-18">18</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-19">19</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-20">20</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-21">21</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-22">22</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-23">23</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-24">24</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-25">25</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-26">26</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-27">27</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-28">28</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-29">29</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-30">30</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-31">31</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-32">32</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-33">33</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-34">34</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-35">35</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-36">36</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-37">37</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-38">38</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-39">39</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-40">40</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-41">41</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-42">42</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-43">43</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-44">44</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-45">45</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-46">46</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-47">47</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-48">48</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-49">49</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-50">50</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-51">51</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-52">52</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-53">53</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-54">54</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-55">55</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-56">56</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-57">57</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-58">58</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-59">59</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-60">60</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-61">61</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-62">62</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-63">63</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-64">64</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-65">65</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-66">66</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-67">67</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-68">68</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-69">69</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-70">70</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-71">71</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-72">72</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-73">73</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-74">74</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-75">75</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-76">76</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-77">77</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-78">78</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-79">79</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-80">80</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-81">81</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-82">82</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-83">83</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-84">84</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-85">85</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-86">86</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-87">87</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-88">88</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-89">89</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-90">90</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-91">91</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-92">92</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-93">93</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-94">94</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-95">95</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-96">96</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-97">97</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-98">98</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-99">99</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-100">100</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-101">101</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-102">102</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-103">103</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-104">104</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-105">105</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-106">106</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-107">107</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-108">108</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-109">109</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-110">110</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-111">111</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-112">112</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-113">113</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-114">114</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-115">115</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-116">116</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-117">117</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-118">118</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-119">119</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-120">120</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-121">121</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-122">122</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-123">123</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-124">124</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-125">125</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-126">126</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-127">127</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-128">128</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-129">129</div><div class="crayon-num crayon-striped-num" data-line="crayon-5a38d468d52c9302656812-130">130</div><div class="crayon-num" data-line="crayon-5a38d468d52c9302656812-131">131</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5a38d468d52c9302656812-1"><span class="crayon-ta"><?</span><span class="crayon-e">xml </span><span class="crayon-i">version</span><span class="crayon-o">=</span><span class="crayon-s">"1.0"</span><span class="crayon-h"> </span><span class="crayon-i">encoding</span><span class="crayon-o">=</span><span class="crayon-s">"UTF-8"</span><span class="crayon-ta">?></span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-2"><span class="crayon-o"><</span><span class="crayon-v">templates</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-3"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-e">template</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-4"><span class="crayon-e"> </span><span class="crayon-v">autoinsert</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-5"><span class="crayon-h"> </span><span class="crayon-v">context</span><span class="crayon-o">=</span><span class="crayon-s">"filecomment_context"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-6"><span class="crayon-h"> </span><span class="crayon-v">deleted</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-7"><span class="crayon-h"> </span><span class="crayon-v">description</span><span class="crayon-o">=</span><span class="crayon-s">"Comment for created Java files"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-8"><span class="crayon-h"> </span><span class="crayon-v">enabled</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-9"><span class="crayon-h"> </span><span class="crayon-v">id</span><span class="crayon-o">=</span><span class="crayon-s">"org.eclipse.jdt.ui.text.codetemplates.filecomment"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-10"><span class="crayon-h"> </span><span class="crayon-v">name</span><span class="crayon-o">=</span><span class="crayon-s">"filecomment"</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-11"><span class="crayon-h"> </span><span class="crayon-c">/** </span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-12"><span class="crayon-c"> * @Title: ${file_name}</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-13"><span class="crayon-c"> * @Package ${package_name}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-14"><span class="crayon-c"> * @Description: ${todo}(用一句话描述该文件做什么)</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-15"><span class="crayon-c"> * @author ${user}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-16"><span class="crayon-c"> * @date ${date}</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-17"><span class="crayon-c"> * @version V1.0 </span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-18"><span class="crayon-c"> */</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-19"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-o">/</span><span class="crayon-v">template</span><span class="crayon-o">></span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-20"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-e">template</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-21"><span class="crayon-e"> </span><span class="crayon-v">autoinsert</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-22"><span class="crayon-h"> </span><span class="crayon-v">context</span><span class="crayon-o">=</span><span class="crayon-s">"typecomment_context"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-23"><span class="crayon-h"> </span><span class="crayon-v">deleted</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-24"><span class="crayon-h"> </span><span class="crayon-v">description</span><span class="crayon-o">=</span><span class="crayon-s">"Comment for created types"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-25"><span class="crayon-h"> </span><span class="crayon-v">enabled</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-26"><span class="crayon-h"> </span><span class="crayon-v">id</span><span class="crayon-o">=</span><span class="crayon-s">"org.eclipse.jdt.ui.text.codetemplates.typecomment"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-27"><span class="crayon-h"> </span><span class="crayon-v">name</span><span class="crayon-o">=</span><span class="crayon-s">"typecomment"</span><span class="crayon-o">></span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-28"><span class="crayon-h"> </span><span class="crayon-c">/**</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-29"><span class="crayon-c"> * @ClassName: ${type_name}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-30"><span class="crayon-c"> * @Description: ${todo}(这里用一句话描述这个类的作用)</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-31"><span class="crayon-c"> * @author ${user}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-32"><span class="crayon-c"> * @date ${date}</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-33"><span class="crayon-c"> *</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-34"><span class="crayon-c"> * ${tags}</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-35"><span class="crayon-c"> */</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-36"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-o">/</span><span class="crayon-v">template</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-37"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-e">template</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-38"><span class="crayon-e"> </span><span class="crayon-v">autoinsert</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-39"><span class="crayon-h"> </span><span class="crayon-v">context</span><span class="crayon-o">=</span><span class="crayon-s">"fieldcomment_context"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-40"><span class="crayon-h"> </span><span class="crayon-v">deleted</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-41"><span class="crayon-h"> </span><span class="crayon-v">description</span><span class="crayon-o">=</span><span class="crayon-s">"Comment for fields"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-42"><span class="crayon-h"> </span><span class="crayon-v">enabled</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-43"><span class="crayon-h"> </span><span class="crayon-v">id</span><span class="crayon-o">=</span><span class="crayon-s">"org.eclipse.jdt.ui.text.codetemplates.fieldcomment"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-44"><span class="crayon-h"> </span><span class="crayon-v">name</span><span class="crayon-o">=</span><span class="crayon-s">"fieldcomment"</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-45"><span class="crayon-h"> </span><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-46"><span class="crayon-c"> * @Fields ${field} : ${todo}(用一句话描述这个变量表示什么)</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-47"><span class="crayon-c"> */</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-48"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-o">/</span><span class="crayon-v">template</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-49"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-e">template</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-50"><span class="crayon-e"> </span><span class="crayon-v">autoinsert</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-51"><span class="crayon-h"> </span><span class="crayon-v">context</span><span class="crayon-o">=</span><span class="crayon-s">"constructorcomment_context"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-52"><span class="crayon-h"> </span><span class="crayon-v">deleted</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-53"><span class="crayon-h"> </span><span class="crayon-v">description</span><span class="crayon-o">=</span><span class="crayon-s">"Comment for created constructors"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-54"><span class="crayon-h"> </span><span class="crayon-v">enabled</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-55"><span class="crayon-h"> </span><span class="crayon-v">id</span><span class="crayon-o">=</span><span class="crayon-s">"org.eclipse.jdt.ui.text.codetemplates.constructorcomment"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-56"><span class="crayon-h"> </span><span class="crayon-v">name</span><span class="crayon-o">=</span><span class="crayon-s">"constructorcomment"</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-57"><span class="crayon-h"> </span><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-58"><span class="crayon-c"> * 创建一个新的实例 ${enclosing_type}.</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-59"><span class="crayon-c"> *</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-60"><span class="crayon-c"> * ${tags}</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-61"><span class="crayon-c"> */</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-62"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-o">/</span><span class="crayon-v">template</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-63"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-e">template</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-64"><span class="crayon-e"> </span><span class="crayon-v">autoinsert</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-65"><span class="crayon-h"> </span><span class="crayon-v">context</span><span class="crayon-o">=</span><span class="crayon-s">"methodcomment_context"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-66"><span class="crayon-h"> </span><span class="crayon-v">deleted</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-67"><span class="crayon-h"> </span><span class="crayon-v">description</span><span class="crayon-o">=</span><span class="crayon-s">"Comment for non-overriding methods"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-68"><span class="crayon-h"> </span><span class="crayon-v">enabled</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-69"><span class="crayon-h"> </span><span class="crayon-v">id</span><span class="crayon-o">=</span><span class="crayon-s">"org.eclipse.jdt.ui.text.codetemplates.methodcomment"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-70"><span class="crayon-h"> </span><span class="crayon-v">name</span><span class="crayon-o">=</span><span class="crayon-s">"methodcomment"</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-71"><span class="crayon-h"> </span><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-72"><span class="crayon-c"> * @Title: ${enclosing_method}</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-73"><span class="crayon-c"> * @Description: ${todo}(这里用一句话描述这个方法的作用)</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-74"><span class="crayon-c"> * @param ${tags} 参数</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-75"><span class="crayon-c"> * @return ${return_type} 返回类型</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-76"><span class="crayon-c"> * @throws</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-77"><span class="crayon-c"> */</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-78"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-o">/</span><span class="crayon-v">template</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-79"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-e">template</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-80"><span class="crayon-e"> </span><span class="crayon-v">autoinsert</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-81"><span class="crayon-h"> </span><span class="crayon-v">context</span><span class="crayon-o">=</span><span class="crayon-s">"overridecomment_context"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-82"><span class="crayon-h"> </span><span class="crayon-v">deleted</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-83"><span class="crayon-h"> </span><span class="crayon-v">description</span><span class="crayon-o">=</span><span class="crayon-s">"Comment for overriding methods"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-84"><span class="crayon-h"> </span><span class="crayon-v">enabled</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-85"><span class="crayon-h"> </span><span class="crayon-v">id</span><span class="crayon-o">=</span><span class="crayon-s">"org.eclipse.jdt.ui.text.codetemplates.overridecomment"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-86"><span class="crayon-h"> </span><span class="crayon-v">name</span><span class="crayon-o">=</span><span class="crayon-s">"overridecomment"</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-87"><span class="crayon-h"> </span><span class="crayon-c">/* (非 Javadoc)</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-88"><span class="crayon-c"> * <p>Title: ${enclosing_method}</p></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-89"><span class="crayon-c"> * <p>Description: </p></span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-90"><span class="crayon-c"> * ${tags}</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-91"><span class="crayon-c"> * ${see_to_overridden}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-92"><span class="crayon-c"> */</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-93"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-o">/</span><span class="crayon-v">template</span><span class="crayon-o">></span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-94"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-e">template</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-95"><span class="crayon-e"> </span><span class="crayon-v">autoinsert</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-96"><span class="crayon-h"> </span><span class="crayon-v">context</span><span class="crayon-o">=</span><span class="crayon-s">"delegatecomment_context"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-97"><span class="crayon-h"> </span><span class="crayon-v">deleted</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-98"><span class="crayon-h"> </span><span class="crayon-v">description</span><span class="crayon-o">=</span><span class="crayon-s">"Comment for delegate methods"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-99"><span class="crayon-h"> </span><span class="crayon-v">enabled</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-100"><span class="crayon-h"> </span><span class="crayon-v">id</span><span class="crayon-o">=</span><span class="crayon-s">"org.eclipse.jdt.ui.text.codetemplates.delegatecomment"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-101"><span class="crayon-h"> </span><span class="crayon-v">name</span><span class="crayon-o">=</span><span class="crayon-s">"delegatecomment"</span><span class="crayon-o">></span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-102"><span class="crayon-h"> </span><span class="crayon-c">/**</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-103"><span class="crayon-c"> * ${tags}</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-104"><span class="crayon-c"> * ${see_to_target}</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-105"><span class="crayon-c"> */</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-106"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-o">/</span><span class="crayon-v">template</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-107"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-e">template</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-108"><span class="crayon-e"> </span><span class="crayon-v">autoinsert</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-109"><span class="crayon-h"> </span><span class="crayon-v">context</span><span class="crayon-o">=</span><span class="crayon-s">"gettercomment_context"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-110"><span class="crayon-h"> </span><span class="crayon-v">deleted</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-111"><span class="crayon-h"> </span><span class="crayon-v">description</span><span class="crayon-o">=</span><span class="crayon-s">"Comment for getter method"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-112"><span class="crayon-h"> </span><span class="crayon-v">enabled</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-113"><span class="crayon-h"> </span><span class="crayon-v">id</span><span class="crayon-o">=</span><span class="crayon-s">"org.eclipse.jdt.ui.text.codetemplates.gettercomment"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-114"><span class="crayon-h"> </span><span class="crayon-v">name</span><span class="crayon-o">=</span><span class="crayon-s">"gettercomment"</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-115"><span class="crayon-h"> </span><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-116"><span class="crayon-c"> * @return ${bare_field_name}</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-117"><span class="crayon-c"> */</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-118"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-o">/</span><span class="crayon-v">template</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-119"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-e">template</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-120"><span class="crayon-e"> </span><span class="crayon-v">autoinsert</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-121"><span class="crayon-h"> </span><span class="crayon-v">context</span><span class="crayon-o">=</span><span class="crayon-s">"settercomment_context"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-122"><span class="crayon-h"> </span><span class="crayon-v">deleted</span><span class="crayon-o">=</span><span class="crayon-s">"false"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-123"><span class="crayon-h"> </span><span class="crayon-v">description</span><span class="crayon-o">=</span><span class="crayon-s">"Comment for setter method"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-124"><span class="crayon-h"> </span><span class="crayon-v">enabled</span><span class="crayon-o">=</span><span class="crayon-s">"true"</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-125"><span class="crayon-h"> </span><span class="crayon-v">id</span><span class="crayon-o">=</span><span class="crayon-s">"org.eclipse.jdt.ui.text.codetemplates.settercomment"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-126"><span class="crayon-h"> </span><span class="crayon-v">name</span><span class="crayon-o">=</span><span class="crayon-s">"settercomment"</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-127"><span class="crayon-h"> </span><span class="crayon-c">/**</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-128"><span class="crayon-c"> * @param ${param} the ${bare_field_name} to set</span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-129"><span class="crayon-c"> */</span></div><div class="crayon-line crayon-striped-line" id="crayon-5a38d468d52c9302656812-130"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-o">/</span><span class="crayon-v">template</span><span class="crayon-o">></span></div><div class="crayon-line" id="crayon-5a38d468d52c9302656812-131"><span class="crayon-h"> </span><span class="crayon-o"><</span><span class="crayon-o">/</span><span class="crayon-v">templates</span><span class="crayon-o">></span></div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!--<br />-->
<!-- 图片广告 -->
<!--<br /><div class="bshare-custom icon-medium"><div class="bsPromo bsPromo2"></div><a title="分享到" href="http://www.bShare.cn/" id="bshare-shareto" class="bshare-more">分享到</a><a title="分享到QQ空间" class="bshare-qzone"></a><a title="分享到新浪微博" class="bshare-sinaminiblog"></a><a title="分享到开心网" class="bshare-kaixin001" href="javascript:void(0);"></a><a title="分享到人人网" class="bshare-renren"></a><a title="分享到搜狐微博" class="bshare-sohuminiblog" href="javascript:void(0);"></a><a title="分享到网易微博" class="bshare-neteasemb" href="javascript:void(0);"></a><a title="更多平台" class="bshare-more bshare-more-icon more-style-addthis"></a><span class="BSHARE_COUNT bshare-share-count" style="float: none; ">12.8K</span></div>-->
<!-- 图片广告 -->
<!-- -->
<div class="clear"></div>
<div class="postcopyright">
<p><strong> 声明: </strong> 本文由<a href="http://swiftlet.net">金丝燕网</a>原创编译,转载请保留链接: <a href="http://swiftlet.net/archives/1199" title="Eclipse注释模板设置详解">Eclipse注释模板设置详解</a>
</p>
</div>
</div>