org.eclipse.xtext.xbase.XbaseStandaloneSetup.xtend Maven / Gradle / Ivy
/**
* Copyright (c) 2010 itemis AG (http://www.itemis.eu) and others.
* 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
*/
package org.eclipse.xtext.xbase
import org.eclipse.emf.ecore.EPackage
import com.google.inject.Injector
/**
* Initialization support for running Xtext languages
* without equinox extension registry
* @since 2.7
*/
class XbaseStandaloneSetup extends XbaseStandaloneSetupGenerated {
def static void doSetup() {
new XbaseStandaloneSetup().createInjectorAndDoEMFRegistration()
}
override Injector createInjectorAndDoEMFRegistration() {
EPackage.Registry.INSTANCE.put(XbasePackage.eINSTANCE.getNsURI(), XbasePackage.eINSTANCE)
return super.createInjectorAndDoEMFRegistration()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy