use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class SimpleExpressionsTestLanguageStandaloneSetupGenerated 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("simpleexpressionstestlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("simpleexpressionstestlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/xtext/test/simpleExpressions")) {
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/xtext/test/simpleExpressions", SimpleExpressionsPackage.eINSTANCE);
}
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class TestLanguageStandaloneSetupGenerated 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("testlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("testlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/2008/xtext/TestLang")) {
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/2008/xtext/TestLang", TestLangPackage.eINSTANCE);
}
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-xtend by eclipse.
the class XtendStandaloneSetupGenerated 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("xtend", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("xtend", serviceProvider);
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class HiddenTokenSequencerTestLanguageStandaloneSetupGenerated 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("hiddentokensequencertestlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("hiddentokensequencertestlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/2009/tmf/xtext/hiddentokensequencertestlanguage")) {
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/2009/tmf/xtext/hiddentokensequencertestlanguage", HiddentokensequencertestPackage.eINSTANCE);
}
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class Bug305397StandaloneSetupGenerated 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("bug305397", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("bug305397", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://www.xtext.org/tests/bug305397")) {
EPackage.Registry.INSTANCE.put("http://www.xtext.org/tests/bug305397", Bug305397Package.eINSTANCE);
}
}
Aggregations