Friday, 20 January 2012

Setting up Eclipse check list (Part 2) - Java Preferences (Codetemplates.xml)

See original article


<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="overridecomment_context" deleted="false" description="Comment for overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name="overridecomment">/**
 * Overriden method ${enclosing_method}.
 * ${todo} Document why ${enclosing_type}.${enclosing_method} is overridden.
 *
 * ${tags}
 * ${see_to_overridden}
 */</template><template autoinsert="false" context="filecomment_context" deleted="false" description="Comment for created Java files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.filecomment" name="filecomment">/**
 * ${project_name} - ${type_name}
 * Copyright (c) ${year} by EMBED PLAYSAFE
 * ALL RIGHTS RESERVED
 *
 * Created by ${user} on ${date}.
 */

</template><template autoinsert="false" context="gettercomment_context" deleted="false" description="Comment for getter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name="gettercomment">/**
 * Getter method for ${bare_field_name} of type ${field_type}.
 * May instantiate ${bare_field_name} if it does not exist.
 * @return the ${bare_field_name} or &lt;code&gt;null&lt;/code&gt; if not present.
 */</template><template autoinsert="false" context="fieldcomment_context" deleted="false" description="Comment for fields" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name="fieldcomment">/**
 * ${todo} Comment ${field} or type ${field_type}.
 */</template><template autoinsert="false" context="constructorcomment_context" deleted="false" description="Comment for created constructors" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name="constructorcomment">/**
 * ${todo} Comment constructor for ${enclosing_type}.
 *
 * ${tags}
 */</template><template autoinsert="false" context="settercomment_context" deleted="false" description="Comment for setter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.settercomment" name="settercomment">/**
 * Setter for ${bare_field_name} of type ${field_type}.
 *
 * @param ${param} the ${bare_field_name} to set
 */</template><template autoinsert="false" context="methodcomment_context" deleted="false" description="Comment for non-overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name="methodcomment">/**
 * ${todo} Comment method ${enclosing_method} in ${enclosing_type}.
 *
 * ${tags}
 */</template><template autoinsert="false" context="typecomment_context" deleted="false" description="Comment for created types" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment">/**
 * ${todo} Comments for ${type_name}.
 *
 * @author ${user}
 * @version 1
 *
 * ${tags}
 */</template><template autoinsert="false" context="delegatecomment_context" deleted="false" description="Comment for delegate methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name="delegatecomment">/**
 * Delegate Method
 * ${tags}
 * ${see_to_target}
 */</template></templates>

No comments:

Post a Comment