Template[] typecomments= Templates.getInstance().getTemplates("typecomment"); for (int i= 0; i < typecomments.length; i++) { typecomments[i].setPattern("/** typecomment template*/"); } Template[] filecomments= Templates.getInstance().getTemplates("filecomment"); for (int i= 0; i < filecomments.length; i++) { filecomments[i].setPattern("/** filecomment template */"); }
CodeTemplates.getCodeTemplate(CodeTemplates.TYPECOMMENT).setPattern("/** typecomment template*/");
	protected void setUp() throws Exception {		super.setUp();		Template[] typecomments= Templates.getInstance().getTemplates("typecomment");		for (int i= 0; i < typecomments.length; i++) {			typecomments[i].setPattern("/** typecomment template*/");			}		Template[] filecomments= Templates.getInstance().getTemplates("filecomment");		for (int i= 0; i < filecomments.length; i++) {			filecomments[i].setPattern("/** filecomment template */");			}	    Hashtable options= JavaCore.getOptions();	    fCompactPref= options.get(JavaCore.FORMATTER_COMPACT_ASSIGNMENT);	    fTabPref= options.get(JavaCore.FORMATTER_TAB_CHAR);	    options.put(JavaCore.FORMATTER_COMPACT_ASSIGNMENT, JavaCore.COMPACT);	    options.put(JavaCore.FORMATTER_TAB_CHAR, JavaCore.TAB);	    JavaCore.setOptions(options);	}