/***************************************************************************** * Copyright (c) 2012 CEA LIST. * * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * CEA LIST - Initial API and implementation * *****************************************************************************/ package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext; 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 AppliedStereotypePropertyStandaloneSetupGenerated implements ISetup { public Injector createInjectorAndDoEMFRegistration() { org.eclipse.papyrus.uml.alf.AlfStandaloneSetup.doSetup(); Injector injector = createInjector(); register(injector); return injector; } public Injector createInjector() { return Guice.createInjector(new org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.AppliedStereotypePropertyRuntimeModule()); } public void register(Injector injector) { if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/StereotypeProperty")) { EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/StereotypeProperty", org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage.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("stereotypeproperty", resourceFactory); org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("stereotypeproperty", serviceProvider); } }