@Override public void start(BundleContext context) throws Exception { super.start(context); instance = this; this.registry = new ContributionContextTypeRegistry(BfTemplateType.REGISTRY_ID); // this.registry.addContextType(new BfTemplateType("org.birenheide.bf.brainfuck.p1", "1 Parameter")); for (ParametrizedTemplateTypeDescriptor desc : ParametrizedTemplateTypeDescriptor.values()) { this.registry.addContextType(desc.templateType); } this.templateStore = new ContributionTemplateStore(registry, this.getPreferenceStore(), BfPreferenceInitializer.TEMPLATE_KEY); try { this.templateStore.load(); } catch (IOException e) { logError("Templates coud not be loaded", e); } }