use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class Bug297105TestLanguageStandaloneSetupGenerated 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("bug297105testlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("bug297105testlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/2008/tmf/xtext/Bug297105TestLanguage")) {
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/2008/tmf/xtext/Bug297105TestLanguage", Bug297105TestLanguagePackage.eINSTANCE);
}
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class Bug317840TestLanguageStandaloneSetupGenerated 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("bug317840testlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("bug317840testlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/2010/tmf/xtext/Bug317840TestLanguage")) {
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/2010/tmf/xtext/Bug317840TestLanguage", Bug317840TestLanguagePackage.eINSTANCE);
}
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class TerminalRulesTestLanguageStandaloneSetupGenerated 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("terminalrulestestlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("terminalrulestestlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/2008/tmf/xtext/TerminalRulesTest")) {
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/2008/tmf/xtext/TerminalRulesTest", TerminalRulesTestLanguagePackage.eINSTANCE);
}
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class UnicodeTestLanguageStandaloneSetupGenerated 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("unicodetestlanguage", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("unicodetestlanguage", serviceProvider);
if (!EPackage.Registry.INSTANCE.containsKey("http://www.xtext.org/tests/parser/terminalrules/Unicode")) {
EPackage.Registry.INSTANCE.put("http://www.xtext.org/tests/parser/terminalrules/Unicode", UnicodePackage.eINSTANCE);
}
}
use of org.eclipse.xtext.resource.IResourceFactory in project xtext-core by eclipse.
the class FragmentTestLanguageExStandaloneSetupGenerated 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("fragmenttestlanguageex", resourceFactory);
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("fragmenttestlanguageex", serviceProvider);
}
Aggregations