The entry for setting the annotation template: window-> preference-> JAVA-> codestyle-> code template. Then, expand the comments node to set all the elements for annotation. We will introduce each element one by one:
Select the following tags:
Files, types .....
File (Files) annotation label:
/**
*@ Project:$ {Project_name}
*@ Title:$ {File_name}
*@ Package$ {Package_name}
*@ Description:$ {Todo}
*@ AuthorShenyanghongahong2011@gmail.com
*@ Date$ {Date }$ {time}
*@ Copyright: $ {Year} www.1000chi. cominc. All rights reserved.
*@ VersionV1.0
*/
Class (types) annotation label (class annotation ):
/**
*@ Classname$ {Type_name}
*@ Description$ {Todo}
*@ AuthorShenyanghong ahong2011@gmail.com
*@ Date$ {Date}
* $ {Tags}
*/
Field (fields) annotation label:
/**
* @ Fields $ {field }:$ {todo}
*/
Constructor Tag:
/**
*@ Description:$ {Todo}
* $ {Tags}
*/
Method (constructor & Methods) label:
/**
*@ Method:$ {Enclosing_method}
*@ Description:$ {Todo}
*@ Param$ {Tags}
*@ Return$ {Return_type}
*@ Throws
*/
Overriding Methods labels:
/**
*@ Method:$ {Enclosing_method}
*@ Description:$ {Todo}
* $ {Tags}
* $ {See_to_overridden}
*/