标签:解析 family files pack port dash ucid imp text
今天给大家具体介绍一下怎样创建凝视模板,给每一个类和方法都自己手动去凝视信息也能够。仅仅是这样比較繁琐。为何我们不手动去创建一个凝视模板呢?
xml version="1.0" encoding="UTF-8" standalone="no"?><templates><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">/**
* @描写叙述:
* @方法名: ${enclosing_method}
* ${tags}
* @创建人:${user}
* @创建时间:${date}${time}
* @改动人:${user}
* @改动时间:${date}${time}
* @改动备注:
* @throws
*/</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">/**
* @描写叙述:
* @方法名: ${enclosing_method}
* ${tags}
* @返回类型 ${return_type}
* @创建人 ${user}
* @创建时间 ${date}${time}
* @改动人 ${user}
* @改动时间 ${date}${time}
* @改动备注
* @since
* @throws
*/</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">/**
* <p>Title: </p>
* <p>Description: </p>
* ${tags}
*/</template><template autoinsert="false" context="settercomment_context" deleted="false" description="Comment for setter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.settercomment" name="settercomment">/**
* @param ${param} ${bare_field_name}
*/</template><template autoinsert="false" 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="gettercomment_context" deleted="false" description="Comment for getter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name="gettercomment">/**
* @return ${bare_field_name}
*/</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">/**
* @类描写叙述:
* @项目名称:${project_name}
* @包名: ${package_name}
* @类名称:${type_name}
* @创建人:${user}
* @创建时间:${date}${time}
* @改动人:${user}
* @改动时间:${date}${time}
* @改动备注:
* @version v1.0
* @see [nothing]
* @bug [nothing]
* @Copyright go3c
* @mail *@qq.com
*/</template><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">/**
* @标题: ${file_name}
* @包名: ${package_name}
* @功能描写叙述:${todo}
* @作者: ${user}
* @创建时间: ${date} ${time}
* @version v1.0
*/</template><template autoinsert="false" context="fieldcomment_context" deleted="false" description="Comment for fields" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name="fieldcomment">/**
* @字段:${field}
* @功能描写叙述:
* @创建人:${user}
* @创建时间:${date}${time}
*/</template></templates>
标签:解析 family files pack port dash ucid imp text
原文地址:http://www.cnblogs.com/zsychanpin/p/6816001.html