Eclipse Java注释模板设置详解
Eclipse Java注释模板设置详解 ===参考
http://blog.csdn.net/ahhsxy/archive/2009/09/11/4542682.aspx
简单模板例子:
view
plain
copy
to clipboard
print
?
<?xml version=
"1.0"
encoding=
"UTF-8"
?><templates><template autoinsert=
"true"
context=
"fieldcomment_context"
deleted=
"false"
description=
"字段的注释"
enabled=
"true"
id=
"org.eclipse.jdt.ui.text.codetemplates.fieldcomment"
name=
"fieldcomment"
>
/**
* @Fields ${field} : ${todo}(用一句话描述这个变量表示什么)
*/
</template><template autoinsert="true"
context=
"gettercomment_context"
deleted=
"false"
description=
"getter 方法的注释"
enabled=
"true"
id=
"org.eclipse.jdt.ui.text.codetemplates.gettercomment"
name=
"gettercomment"
>
/**
* @return ${bare_field_name}
*/
</template><template autoinsert="true"
context=
"constructorcomment_context"
deleted=
"false"
description=
"创建的构造函数的注释"
enabled=
"true"
id=
"org.eclipse.jdt.ui.text.codetemplates.constructorcomment"
name=
"constructorcomment"
>
/**
* <p>Title:${file_name} </p>
* <p>Description: 构造函
数</p>
* ${tags}
*/
</template><template autoinsert="true"
context=
"filecomment_context"
deleted=
"false"
description=
"已创建的 Java 文件的注释"
enabled=
"true"
&
相关文档:
第二章 类和对象
A. 万物皆对象
B. 对象由表示状态的属性和表示行为的方法组成
C.   ......
Let's begin by downloading the latest version of JRE (Java Runtime
Environment) from here
.
Just click on the Download link where it says Java Runtime
Environment (JRE) 5.0 Update
, then you�ll need to accept the license
and download the Linux self-extracting file
.By default, Fe ......
下面这段程序是实现了两个操作数加法的操作运算
/**
*the First Java
*@author wanglei
*@version 1.0
*/
import java.util.Scanner;
public class FirstJava{
public static void main(String[] args){
/**声明两个整型变量*/
int opA ......