/******************************************************************************* * Copyright (c) 2015, 2016 Obeo. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Obeo - initial API and implementation *******************************************************************************/ package org.eclipse.eef.ide.internal; import org.eclipse.eef.common.api.AbstractEEFEclipsePlugin; import org.eclipse.emf.common.EMFPlugin; import org.eclipse.emf.common.util.ResourceLocator; import org.osgi.framework.BundleContext; /** * The plugin class of the bundle. * * @author sbegaudeau */ public class EEFIdePlugin extends EMFPlugin { /** * The identifier of the plugin. */ public static final String PLUGIN_ID = "org.eclipse.eef.ide"; //$NON-NLS-1$ /** * The sole instance of the plugin. */ public static final EEFIdePlugin INSTANCE = new EEFIdePlugin(); /** * The OSGi related implementation of the plugin. */ private static Implementation plugin; /** * The constructor. */ public EEFIdePlugin() { super(new ResourceLocator[0]); } /** * {@inheritDoc} * * @see org.eclipse.emf.common.EMFPlugin#getPluginResourceLocator() */ @Override public ResourceLocator getPluginResourceLocator() { return plugin; } /** * Returns the OSGi related implementation. * * @return The OSGi related implementation */ public static Implementation getPlugin() { return plugin; } /** * This class is used as the bundle activator of the plugin. * * @author sbegaudeau */ public static class Implementation extends AbstractEEFEclipsePlugin { /** * The constructor. */ public Implementation() { super(PLUGIN_ID); EEFIdePlugin.plugin = this; } /** * {@inheritDoc} * * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext) */ @Override public void start(BundleContext context) throws Exception { super.start(context); } /** * {@inheritDoc} * * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext) */ @Override public void stop(BundleContext context) throws Exception { super.stop(context); } } }