blob: cf26f44c674f5bfe1e8bed85e2914fa2e94ad3dc [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2016 - 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:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
*/
package org.eclipse.osbp.xtext.dialogdsl;
import org.eclipse.osbp.ecview.dsl.UIGrammarBundleSpaceStandaloneSetup;
import com.google.inject.Guice;
import com.google.inject.Injector;
@SuppressWarnings("restriction")
public class DialogDSLBundleSpaceStandaloneSetup extends
DialogDslStandaloneSetup {
public static void doSetup() {
new DialogDSLBundleSpaceStandaloneSetup()
.createInjectorAndDoEMFRegistration();
}
@Override
public Injector createInjectorAndDoEMFRegistration() {
UIGrammarBundleSpaceStandaloneSetup.doSetup();
Injector injector = createInjector();
register(injector);
return injector;
}
@Override
public Injector createInjector() {
return Guice.createInjector(new DialogDSLBundleSpaceRuntimeModule());
}
}