-
Notifications
You must be signed in to change notification settings - Fork 316
/
ExBeeLangTestLanguageExecutableExtensionFactory.java
34 lines (29 loc) · 1.36 KB
/
ExBeeLangTestLanguageExecutableExtensionFactory.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*******************************************************************************
* Copyright (c) 2010, 2024 itemis AG (http://www.itemis.eu) and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.xtext.testlanguages.backtracking.ui;
import com.google.inject.Injector;
import org.eclipse.xtext.testlanguages.ui.internal.TestlanguagesActivator;
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 ExBeeLangTestLanguageExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
@Override
protected Bundle getBundle() {
return FrameworkUtil.getBundle(TestlanguagesActivator.class);
}
@Override
protected Injector getInjector() {
TestlanguagesActivator activator = TestlanguagesActivator.getInstance();
return activator != null ? activator.getInjector(TestlanguagesActivator.ORG_ECLIPSE_XTEXT_TESTLANGUAGES_BACKTRACKING_EXBEELANGTESTLANGUAGE) : null;
}
}