/**
* <copyright>
*
* Copyright (c) 2010-2016 Thales Global Services S.A.S.
* 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:
* Thales Global Services S.A.S. - initial API and implementation
*
* </copyright>
*/
package org.eclipse.emf.diffmerge.gmf;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* The activator class for this plug-in.
* @author Olivier Constant
*/
public class GMFDiffMergePlugin extends Plugin {
/** The shared instance */
private static GMFDiffMergePlugin __plugin;
/**
* Constructor
*/
public GMFDiffMergePlugin() {
// Nothing needed
}
/**
* Return the shared instance of the activator
* @return a non-null instance
*/
public static GMFDiffMergePlugin getDefault() {
return __plugin;
}
/**
* Return the ID of this plug-in according to MANIFEST.MF
* @return a non-null string
*/
public String getPluginId() {
return getBundle().getSymbolicName();
}
/**
* @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
*/
@Override
public void start(BundleContext context_p) throws Exception {
super.start(context_p);
__plugin = this;
}
/**
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
*/
@Override
public void stop(BundleContext context_p) throws Exception {
__plugin = null;
super.stop(context_p);
}
}