Eclipse adds a copyright note to a Java class

Source: Internet
Author: User

Location: window/reference/java/codestyle/code/new java files

${filecomment}
${package_declaration}
/**
* Project name: ${project_name}
* Class name: ${type_name}
* Class Description:
* Create Person: Ludequi
* Author unit: National Network Electric Power Science Research Institute Information Communication Branch
* Contact Method: www.mapviews.cn;ldk114@gmail.com
* Creation time: ${date} ${time}
* @version
*/
${typecomment}
${type_declaration}

MyEclipse Programming-java classes automatically add related annotation templates

A MyEclipse edit window How to add a class annotation when developing a Java program.
Positive solution: MyEclipse edit panel >>window>>java>>code style>>code Templates>>configure generated Code and Commengts>>comments>>types>>edit ...
/******************************************************************************
* @function:
* @author Chenyanli
* @file_name ${file_name}
* @package_name: ${package_name}
* @project_name: ${project_name}
* @department: Integrated Resources Project Development Department
* ? Copyright Zhengzhou IMAN Technology Development Co.,ltd 2007
* All Rights Reserved.
* ****************************************************************************
* Modify the time modified by the person modified content
*
* ****************************************************************************
* ${tags}
*/
You can also perform inert in the Edit Template window Variable
Two MyEclipse edit window How to add a comment about a function (method) when developing a Java program.
Positive solution: MyEclipse edit panel >>window>>java>>code style>>code Templates>>configure generated Code and Commengts>>comments>>methods>>edit ...
/**
* @function:
* @data: ${date}${time}
* @author Chenyanli
* ${tags}
*
*/
You can also perform inert in the Edit Template window Variable

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.