From b073505bb7c3f10345ee2d3b6cd06d69167bd438 Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Thu, 16 May 2024 12:04:56 +0200 Subject: [PATCH] regenerated xtext.ui.codetemplates.tests --- .../ui/codetemplates/tests/CodetemplatesInjectorProvider.java | 4 +++- .../tests/SingleCodetemplateInjectorProvider.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/org.eclipse.xtext.ui.codetemplates.tests/src-gen/org/eclipse/xtext/ui/codetemplates/tests/CodetemplatesInjectorProvider.java b/org.eclipse.xtext.ui.codetemplates.tests/src-gen/org/eclipse/xtext/ui/codetemplates/tests/CodetemplatesInjectorProvider.java index e2b8bd542f4..7f351972b02 100644 --- a/org.eclipse.xtext.ui.codetemplates.tests/src-gen/org/eclipse/xtext/ui/codetemplates/tests/CodetemplatesInjectorProvider.java +++ b/org.eclipse.xtext.ui.codetemplates.tests/src-gen/org/eclipse/xtext/ui/codetemplates/tests/CodetemplatesInjectorProvider.java @@ -48,10 +48,12 @@ public Injector createInjector() { protected CodetemplatesRuntimeModule createRuntimeModule() { // make it work also with Maven/Tycho and OSGI // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672 + // allows for bindClassLoaderToInstance to get the class loader of the bundle + // containing the instance of the injector provider (possibly inherited) return new CodetemplatesRuntimeModule() { @Override public ClassLoader bindClassLoaderToInstance() { - return CodetemplatesInjectorProvider.class + return CodetemplatesInjectorProvider.this.getClass() .getClassLoader(); } }; diff --git a/org.eclipse.xtext.ui.codetemplates.tests/src-gen/org/eclipse/xtext/ui/codetemplates/tests/SingleCodetemplateInjectorProvider.java b/org.eclipse.xtext.ui.codetemplates.tests/src-gen/org/eclipse/xtext/ui/codetemplates/tests/SingleCodetemplateInjectorProvider.java index b95de89c7ed..e61fa0dfe1e 100644 --- a/org.eclipse.xtext.ui.codetemplates.tests/src-gen/org/eclipse/xtext/ui/codetemplates/tests/SingleCodetemplateInjectorProvider.java +++ b/org.eclipse.xtext.ui.codetemplates.tests/src-gen/org/eclipse/xtext/ui/codetemplates/tests/SingleCodetemplateInjectorProvider.java @@ -48,10 +48,12 @@ public Injector createInjector() { protected SingleCodetemplateRuntimeModule createRuntimeModule() { // make it work also with Maven/Tycho and OSGI // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672 + // allows for bindClassLoaderToInstance to get the class loader of the bundle + // containing the instance of the injector provider (possibly inherited) return new SingleCodetemplateRuntimeModule() { @Override public ClassLoader bindClassLoaderToInstance() { - return SingleCodetemplateInjectorProvider.class + return SingleCodetemplateInjectorProvider.this.getClass() .getClassLoader(); } };