blob: eefc5b0855a20116bfeb0854c1d27cccc668f1d4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2018 Obeo.
* 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:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.sirius.server.frontend.internal;
import org.eclipse.emf.common.EMFPlugin;
import org.eclipse.emf.common.util.ResourceLocator;
import org.osgi.framework.BundleContext;
/**
* The plugin of the bundle.
*
* @author sbegaudeau
*/
public class SiriusServerFrontendPlugin extends EMFPlugin {
/**
* The identifier of the plugin.
*/
public static final String PLUGIN_ID = "org.eclipse.sirius.server.frontend"; //$NON-NLS-1$
/**
* The sole instance of the plugin.
*/
public static final SiriusServerFrontendPlugin INSTANCE = new SiriusServerFrontendPlugin();
/**
* The sole instance of the bundle activator.
*/
private static Implementation plugin;
/**
* The constructor.
*/
public SiriusServerFrontendPlugin() {
super(new ResourceLocator[0]);
}
@Override
public ResourceLocator getPluginResourceLocator() {
return plugin;
}
/**
* Returns the singleton instance of the Eclipse plugin.
*
* @return the singleton instance.
*/
public static Implementation getPlugin() {
return plugin;
}
/**
* The bundle activator.
*
* @author sbegaudeau
*/
public static class Implementation extends EclipsePlugin {
/**
* The constructor.
*/
public Implementation() {
super();
SiriusServerFrontendPlugin.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);
}
}
}