Skip to content

Commit

Permalink
regenerated xtext.ui.codetemplates.tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed May 21, 2024
1 parent 6e64746 commit b073505
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
};
Expand Down

0 comments on commit b073505

Please sign in to comment.