projet-genie-logiciel-systeme/workspace/fr.n7.game.ui/src-gen/fr/n7/ui/GAMEExecutableExtensionFactory.java

30 lines
796 B
Java
Raw Normal View History

2021-11-30 17:25:45 +00:00
/*
* generated by Xtext 2.23.0
*/
2021-12-03 07:37:31 +00:00
package fr.n7.ui;
2021-11-30 17:25:45 +00:00
import com.google.inject.Injector;
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.
*/
2021-12-03 07:37:31 +00:00
public class GAMEExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
2021-11-30 17:25:45 +00:00
@Override
protected Bundle getBundle() {
return Platform.getBundle(GameActivator.PLUGIN_ID);
}
@Override
protected Injector getInjector() {
GameActivator activator = GameActivator.getInstance();
2021-12-03 07:37:31 +00:00
return activator != null ? activator.getInjector(GameActivator.FR_N7_GAME) : null;
2021-11-30 17:25:45 +00:00
}
}