blob: a59558dd1cad909b404674a967a5f64c1e3b7a1b [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* 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:
* Florian Pirchner - Initial implementation
*/
package org.eclipse.osbp.dsl.entity.xtext;
import com.google.inject.Guice;
import com.google.inject.Injector;
/**
* The Class EntityGrammarBundleSpaceSetup.
*/
@SuppressWarnings("restriction")
public class EntityGrammarBundleSpaceSetup extends
EntityGrammarStandaloneSetup {
/**
* Do setup.
*
* @return the injector
*/
public static Injector doSetup() {
return new EntityGrammarBundleSpaceSetup()
.createInjectorAndDoEMFRegistration();
}
/* (non-Javadoc)
* @see org.eclipse.osbp.dsl.entity.xtext.EntityGrammarStandaloneSetup#createInjectorAndDoEMFRegistration()
*/
public Injector createInjectorAndDoEMFRegistration() {
org.eclipse.osbp.dsl.common.xtext.CommonGrammarBundleSpaceSetup
.doSetup();
Injector injector = createInjector();
register(injector);
return injector;
}
/* (non-Javadoc)
* @see org.eclipse.osbp.dsl.entity.xtext.EntityGrammarStandaloneSetupGenerated#createInjector()
*/
public Injector createInjector() {
return Guice.createInjector(new EntityGrammarBundleSpaceModule());
}
}