易截截图软件、单文件、免安装、纯绿色、仅160KB

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"
&


相关文档:

java 抽象类与接口的区别

在Java
语言中, abstract class 和interface

是支持抽象类
定义的两种机制。正是由于这两种机制的存在,才赋予
了Java强大的 面向对象能力。abstract
class和interface之间在对于抽象类定义的支持方面具有很大的相似性,甚至可以相互替换,因此很多开发者在进
行抽象类定义时对于abstract
class和interface的 ......

Java中"异常机制"的深入研究


Java中"异常机制"的深入研究
 
  由于本文旨在探讨Java"异常机制"的深层原理,因此关于"异常"的使用方法都不做详细说明。首先看一段非常熟悉的用于打开一个文件的C程序段:
 
  FILE *fp;
  fp=fopen(filename,"rw");
  if(fp==NULL){
  printf("cannot open file\n");
  exit(0);
  } ......

java jre 安装方法 FOR FEDORE


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 ......

Java中最基础的类似于HelloWorld程序的编写

下面这段程序是实现了两个操作数加法的操作运算
/**
  *the First Java
  *@author wanglei
  *@version 1.0
  */
import java.util.Scanner;
public class FirstJava{
 public static void main(String[] args){
  
  /**声明两个整型变量*/
  int opA ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号