blob: fd9f918a48a1f72f6f18bccc7b5d578075e979fe [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011, 2020 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* E.D.Willink - initial API and implementation
*******************************************************************************/
package org.eclipse.qvtd.xtext.qvtbase.ui;
import com.google.inject.Injector;
import org.eclipse.qvtd.xtext.qvtbase.ui.internal.QVTbaseActivator;
import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
import org.osgi.framework.Bundle;
import org.osgi.framework.FrameworkUtil;
/**
* This class was generated. Customizations should only happen in a newly
* introduced subclass.
*/
public class QVTbaseExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
@Override
protected Bundle getBundle() {
return FrameworkUtil.getBundle(QVTbaseActivator.class);
}
@Override
protected Injector getInjector() {
QVTbaseActivator activator = QVTbaseActivator.getInstance();
return activator != null ? activator.getInjector(QVTbaseActivator.ORG_ECLIPSE_QVTD_XTEXT_QVTBASE_QVTBASE) : null;
}
}