currData.setTemplate(new Template(oldTemplate.getName(), oldTemplate.getDescription(), oldTemplate.getContextTypeId(), newComment));
currData.setTemplate(new Template(oldTemplate.getName(), oldTemplate.getDescription(), oldTemplate.getContextTypeId(), newComment, oldTemplate.isAutoInsertable()));
	public void testProjectCodeTemplates2() throws Exception {		fJProject1= JavaProjectHelper.createJavaProject("TestProject1", "bin");		try {			ProjectTemplateStore projectStore= new ProjectTemplateStore(fJProject1.getProject());			projectStore.load();			String newComment= "//Hello3";			String templateId= CodeTemplateContextType.SETTERCOMMENT_ID;						// make project specific			projectStore.setProjectSpecific(templateId, true);			// modify template			TemplatePersistenceData currData= find(templateId, projectStore.getTemplateData());			Template oldTemplate= currData.getTemplate();			currData.setTemplate(new Template(oldTemplate.getName(), oldTemplate.getDescription(), oldTemplate.getContextTypeId(), newComment));						projectStore.save();						// load store again			projectStore= new ProjectTemplateStore(fJProject1.getProject());			projectStore.load();						Template currTempl= projectStore.findTemplateById(templateId);			assertTrue(currTempl.getPattern().equals(newComment));						// remove project specific			projectStore.setProjectSpecific(templateId, false);			projectStore.save();						projectStore= new ProjectTemplateStore(fJProject1.getProject());			projectStore.load();			currTempl= projectStore.findTemplateById(templateId);			assertFalse(currTempl.getPattern().equals(newComment));								} finally {			JavaProjectHelper.delete(fJProject1);		}	}	