
org.jnario.feature.FeatureStandaloneSetup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.jnario.standalone Show documentation
Show all versions of org.jnario.standalone Show documentation
The required libraries to execute Jnario specifications without Eclipse.
The newest version!
/*******************************************************************************
* Copyright (c) 2012 BMW Car IT 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.jnario.feature;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.xtext.xbase.annotations.xAnnotations.XAnnotationsPackage;
import org.jnario.JnarioPackage;
import org.jnario.feature.feature.FeaturePackage;
import com.google.inject.Injector;
/**
* @author Birgit Engelmann - Initial contribution and API
*/
public class FeatureStandaloneSetup extends FeatureStandaloneSetupGenerated{
public static void doSetup() {
new FeatureStandaloneSetup().createInjectorAndDoEMFRegistration();
}
@Override
public Injector createInjectorAndDoEMFRegistration() {
EPackage.Registry.INSTANCE.put(XAnnotationsPackage.eINSTANCE.getNsURI(),XAnnotationsPackage.eINSTANCE);
EPackage.Registry.INSTANCE.put(JnarioPackage.eNS_URI, JnarioPackage.eINSTANCE);
EPackage.Registry.INSTANCE.put(FeaturePackage.eNS_URI, FeaturePackage.eINSTANCE);
return super.createInjectorAndDoEMFRegistration();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy