Tuesday, October 19, 2004

Configuring generated code and comments - class version in Eclipse

I looked high and low for this and then contacted a guru friend who sent me the code for the version control which is then added to the top of each new class by default.

Add in Window/Preferences/Java/Code Style/Code Templates/Code/New Java files

/*
* ${file_name}
* Created on ${date}
*
* Copyright McTavish Solutions
* Project: Project Name
*/
${package_declaration}

${typecomment}
${type_declaration}

Add in Window/Preferences/Java/Code Style/Code Templates/Comments/Types

/**
* @author ${user}
* @version $$Revision: 1.0 $$
*
*/

Add this in and then CVS will change it with each update made

No comments: