org.eclipse.xtext.purexbase.ide.PureXbaseIdeSetup Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2017, 2019 itemis AG (http://www.itemis.eu) and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.xtext.purexbase.ide;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.eclipse.xtext.purexbase.PureXbaseRuntimeModule;
import org.eclipse.xtext.purexbase.PureXbaseStandaloneSetup;
import org.eclipse.xtext.util.Modules2;
/**
* Initialization support for running Xtext languages as language servers.
*/
public class PureXbaseIdeSetup extends PureXbaseStandaloneSetup {
@Override
public Injector createInjector() {
return Guice.createInjector(Modules2.mixin(new PureXbaseRuntimeModule(), new PureXbaseIdeModule()));
}
}