2021-11-30 17:25:45 +00:00
|
|
|
/*
|
|
|
|
* generated by Xtext 2.23.0
|
|
|
|
*/
|
|
|
|
package xtext.ui;
|
|
|
|
|
|
|
|
import com.google.inject.Injector;
|
2021-12-03 07:36:23 +00:00
|
|
|
import fr.n7.game.ui.internal.GameActivator;
|
2021-11-30 17:25:45 +00:00
|
|
|
import org.eclipse.core.runtime.Platform;
|
|
|
|
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 GameExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected Bundle getBundle() {
|
|
|
|
return Platform.getBundle(GameActivator.PLUGIN_ID);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected Injector getInjector() {
|
|
|
|
GameActivator activator = GameActivator.getInstance();
|
|
|
|
return activator != null ? activator.getInjector(GameActivator.XTEXT_GAME) : null;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|