Skip to main content
summaryrefslogtreecommitdiffstats
blob: 35cce125a1134822cced21e7ee24c06eea36483d (plain) (blame)
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
35
36
37
/*******************************************************************************
 * Copyright (c) 2010 itemis AG (http://www.itemis.eu)
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0 
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 * Contributors:
 *   Jan Koehnlein - Initial API and implementation
 *******************************************************************************/
package org.eclipse.osbp.ecview.vaadin.ide.preview.parts;

import org.eclipse.osbp.ecview.vaadin.ide.preview.PreviewActivator;
import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
import org.osgi.framework.Bundle;

import com.google.inject.Injector;

/**
 * Instantiates classes specified in the plugin.xml using the Guice injector.
 *  
 * @author Jan Koehnlein - Initial contribution and API
 */
public class ECViewVaadinViewExecutableExtensionRegistry extends AbstractGuiceAwareExecutableExtensionFactory{

	@Override
	protected Bundle getBundle() {
		return PreviewActivator.getDefault().getBundle();
	}

	@Override
	protected Injector getInjector() {
		return PreviewActivator.getDefault().getInjector();
	}

}

Back to the top