blob: d6cd03ae5fb739f11c5add511a733a262822d6c7 [file] [log] [blame]
/*
* generated by Xtext
*/
package org.eclipse.handly.examples.basic.ui;
import com.google.inject.Injector;
import org.eclipse.handly.examples.basic.ui.internal.BasicActivator;
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 FooExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
@Override
protected Bundle getBundle() {
return FrameworkUtil.getBundle(BasicActivator.class);
}
@Override
protected Injector getInjector() {
BasicActivator activator = BasicActivator.getInstance();
return activator != null ? activator.getInjector(BasicActivator.ORG_ECLIPSE_HANDLY_EXAMPLES_BASIC_FOO) : null;
}
}