Project: JDT
Bug 306923 [templates] added/changed templates do not load after restart
Reported: 2010-03-24 06:43:49 | Status: resolved fixed

I created a template in C/C++ > Editor > Templates After restarting Eclipse the template disappears. The same happens if I change some of the default templates - the default is restored. I use Ubuntu 9.10. I don't know if it's relevant but I have the following lines in my .log file: java.io.IOException: Character reference "&#12" is an invalid XML character. at org.eclipse.jface.text.templates.persistence.TemplateReaderWriter.read(TemplateReaderWriter.java:217) at org.eclipse.jface.text.templates.persistence.TemplateReaderWriter.read(TemplateReaderWriter.java:120) at org.eclipse.jface.text.templates.persistence.TemplateReaderWriter.read(TemplateReaderWriter.java:89) at org.eclipse.jface.text.templates.persistence.TemplateStore.loadCustomTemplates(TemplateStore.java:436) at org.eclipse.jface.text.templates.persistence.TemplateStore.load(TemplateStore.java:109) at org.eclipse.cdt.ui.CUIPlugin.getTemplateStore(CUIPlugin.java:894) at org.eclipse.cdt.internal.ui.text.template.TemplateEngine.complete(TemplateEngine.java:183) at org.eclipse.cdt.internal.ui.text.contentassist.TemplateCompletionProposalComputer.computeCompletionProposals(TemplateCompletionProposalComputer.java:102)

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/EditTemplateDialog.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PreferencesMessages.java