use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class Bug289059TestLanguageStandaloneSetupGenerated method register.
public void register(Injector injector) {
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("bug289059testlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("bug289059testlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://eclipse.org/xtext/Bug289059TestLanguage")) {
EPackage.Registry.INSTANCE.put("http://eclipse.org/xtext/Bug289059TestLanguage", Bug289059TestPackage.eINSTANCE);
}
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class ImportUriTestLanguageStandaloneSetupGenerated method register.
public void register(Injector injector) {
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("importuritestlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("importuritestlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://eclipse.org/xtext/importUriTestLanguage")) {
EPackage.Registry.INSTANCE.put("http://eclipse.org/xtext/importUriTestLanguage", ImportedURIPackage.eINSTANCE);
}
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class Bug289515TestLanguageStandaloneSetupGenerated method register.
public void register(Injector injector) {
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("bug289515testlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("bug289515testlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://eclipse.org/xtext/Bug289515TestLanguage")) {
EPackage.Registry.INSTANCE.put("http://eclipse.org/xtext/Bug289515TestLanguage", Bug289515TestPackage.eINSTANCE);
}
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class Bug296889ExTestLanguageStandaloneSetupGenerated method register.
public void register(Injector injector) {
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("bug296889extestlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("bug296889extestlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://eclipse.org/xtext/Bug296889ExTestLanguage")) {
EPackage.Registry.INSTANCE.put("http://eclipse.org/xtext/Bug296889ExTestLanguage", Bug296889ExTestPackage.eINSTANCE);
}
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class Bug296889TestLanguageStandaloneSetupGenerated method register.
public void register(Injector injector) {
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("bug296889testlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("bug296889testlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://eclipse.org/xtext/Bug296889TestLanguage")) {
EPackage.Registry.INSTANCE.put("http://eclipse.org/xtext/Bug296889TestLanguage", Bug296889TestPackage.eINSTANCE);
}
}
Aggregations