blob: 7463d561d1bc8c7b26718ffcd388a43f70757a4a [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2018 CEA LIST.
*
* 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:
* Arnault Lapitre (CEA LIST) arnault.lapitre@cea.fr
* - Initial API and implementation
*
******************************************************************************
* Generated by Xtext 2.21.0
*****************************************************************************/
package org.eclipse.efm.formalml.xtext.ui;
import com.google.inject.Injector;
import org.eclipse.core.runtime.Platform;
import org.eclipse.efm.formalml.xtext.ui.internal.XtextActivator;
import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
import org.osgi.framework.Bundle;
/**
* This class was generated. Customizations should only happen in a newly
* introduced subclass.
*/
public class FormalMLExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
@Override
protected Bundle getBundle() {
return Platform.getBundle(XtextActivator.PLUGIN_ID);
}
@Override
protected Injector getInjector() {
XtextActivator activator = XtextActivator.getInstance();
return activator != null ? activator.getInjector(XtextActivator.ORG_ECLIPSE_EFM_FORMALML_XTEXT_FORMALML) : null;
}
}