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"
&
相关文档:
List的用法
List包括List接口以及List接口的所有实现类。因为List接口实现了Collection接口,所以List接口拥有Collection接口提供的所有常用方法,又因为List是列表类型,所以List接口还提供了一些适合于自身的常用方法,如表1所示。
表1 List接口定义的常用方法及功能
从表1可以看出,List接口提供的适合于自身的 ......
在成功实现Java调用C++之后,接下来想到能否通过JNA实现Java调用Fortran,今天试验了一下,还是比较容易的。
网上有一个Java调用F95的例子,但是我考虑不仅要实现F95的调用,还要实现F77的调用,所以费了一些周折。
问题的关键在于F77为过程名自动添加了一个尾部的下划线,所以sub1这个过程,到Java一端,就变成了sub1_, ......
最近公司碰到需要用图表的形式显示一些数据,我就开始到网上查询,查到了jfreechart和amcharts,这两者我都实现过了,jfreechart最后生成图片,但是图片效果不是我想要的,然后又研究amcharts 它的效果确实很好,而且官方网站上还有好些例子可供下载,网址是:www.amcharts.com
(想要完成一个amcharts图形需要swfobjects. ......
第二章 类和对象
A. 万物皆对象
B. 对象由表示状态的属性和表示行为的方法组成
C.   ......
昨日在沈阳消防所做产品送检,对方提出意见,要求在鼠标或键盘(USB的)插拔时,须有系统提示。 由于JAVA自身对硬件的支持较弱,找了很多材料,未得其果。 先放上来,记下吧,期待高手指点。 PS: 用LIBUSB-WIN32,做了个尝试,能检测出鼠标插拔了,但是鼠标却不能使用~~ ......