| /******************************************************************************* |
| * 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(); |
| } |
| |
| } |