content: /*
  * generated by Xtext
  */
  package com.intel.llvm.ireditor;
  
  import org.eclipse.emf.ecore.EPackage;
  import org.eclipse.xtext.ISetup;
  import org.eclipse.emf.ecore.resource.Resource;
  
  import com.google.inject.Guice;
  import com.google.inject.Injector;
  
  /**
   * Generated from StandaloneSetup.xpt!
   */
  @SuppressWarnings("all")
  public class LLVM_IRStandaloneSetupGenerated implements ISetup {
  
  	public Injector createInjectorAndDoEMFRegistration() {
  		// register default ePackages
  		if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("ecore"))
  			Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
  				"ecore", new org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl());
  		if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("xmi"))
  			Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
  				"xmi", new org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl());
  		if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("xtextbin"))
  			Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
  				"xtextbin", new org.eclipse.xtext.resource.impl.BinaryGrammarResourceFactoryImpl());
  		if (!EPackage.Registry.INSTANCE.containsKey(org.eclipse.xtext.XtextPackage.eNS_URI))
  			EPackage.Registry.INSTANCE.put(org.eclipse.xtext.XtextPackage.eNS_URI, org.eclipse.xtext.XtextPackage.eINSTANCE);
  
  		Injector injector = createInjector();
  		register(injector);
  		return injector;
  	}
  	
  	public Injector createInjector() {
  		return Guice.createInjector(new com.intel.llvm.ireditor.LLVM_IRRuntimeModule());
  	}
  	
  	public void register(Injector injector) {
  	if (!EPackage.Registry.INSTANCE.containsKey("http://www.intel.com/llvm/ireditor")) {
  		EPackage.Registry.INSTANCE.put("http://www.intel.com/llvm/ireditor", com.intel.llvm.ireditor.lLVM_IR.LLVM_IRPackage.eINSTANCE);
  	}
  
  		org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class);
  		org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class);
  		Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("ll", resourceFactory);
  		org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("ll", serviceProvider);
  		
  
  
  
  	}
  }
  