org.eclipse.xtext.xbase.annotations.XbaseWithAnnotationsStandaloneSetup Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2011 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.annotations;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.xtext.xbase.annotations.xAnnotations.XAnnotationsPackage;
import com.google.inject.Injector;
/**
* Initialization support for running Xtext languages
* without equinox extension registry
*/
public class XbaseWithAnnotationsStandaloneSetup extends XbaseWithAnnotationsStandaloneSetupGenerated{
public static void doSetup() {
new XbaseWithAnnotationsStandaloneSetup().createInjectorAndDoEMFRegistration();
}
@Override
public Injector createInjectorAndDoEMFRegistration() {
EPackage.Registry.INSTANCE.put(XAnnotationsPackage.eINSTANCE.getNsURI(),XAnnotationsPackage.eINSTANCE);
return super.createInjectorAndDoEMFRegistration();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy