blob: da852c9a4bf0d57b8b3721df7ef397c93c1463de [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008-2011 Chair for Applied Software Engineering,
* Technische Universitaet Muenchen.
* 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:
* koegel
******************************************************************************/
package org.eclipse.emf.emfstore.internal.client.model;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* Activator of workspace plugin.
*
* @author koegel
*/
public class Activator extends Plugin {
private static Activator plugin;
/**
* {@inheritDoc}
*
* @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
*/
@Override
// BEGIN SUPRESS CATCH EXCEPTION
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
/**
* {@inheritDoc}
*
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
*/
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
// END SUPRESS CATCH EXCEPTION
/**
* . Returns the shared instance
*
* @return the shared instance
*/
public static Activator getDefault() {
return plugin;
}
}