RDL-Editor/com.minres.rdl.parent/com.minres.rdl.ui/src-gen/com/minres/rdl/ui/RDLExecutableExtensionFacto...

30 lines
811 B
Java
Raw Normal View History

2017-09-12 12:48:21 +02:00
/*
* generated by Xtext 2.14.0
2017-09-12 12:48:21 +02:00
*/
package com.minres.rdl.ui;
import com.google.inject.Injector;
import com.minres.rdl.ui.internal.RdlActivator;
2018-06-02 18:41:09 +02:00
import org.eclipse.core.runtime.Platform;
2017-09-12 12:48:21 +02:00
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 RDLExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
@Override
protected Bundle getBundle() {
2018-06-02 18:41:09 +02:00
return Platform.getBundle(RdlActivator.PLUGIN_ID);
2017-09-12 12:48:21 +02:00
}
@Override
protected Injector getInjector() {
2018-06-02 18:41:09 +02:00
RdlActivator activator = RdlActivator.getInstance();
return activator != null ? activator.getInjector(RdlActivator.COM_MINRES_RDL_RDL) : null;
2017-09-12 12:48:21 +02:00
}
2018-06-02 18:41:09 +02:00
2017-09-12 12:48:21 +02:00
}