*
* @return the template store of this plug-in instance
*/
public TemplateStore getTemplateStore() {
if (templateStore == null) {
templateStore= new ContributionTemplateStore(getContextTypeRegistry(), getPlugin().getPreferenceStore(), CUSTTOM_TEMPLATES_PREFERENCE_NAME);
try {
templateStore.load();
} catch (IOException e) {
getPlugin().getLog().log(new Status(IStatus.ERROR, "net.sourceforge.veditor", IStatus.OK, "", e)); //$NON-NLS-1$ //$NON-NLS-2$
}