/* ----------------------------------------------------------------
* Original File Name: Activator.java
* Creation Date: 2012-10-08
* Description: Bundle Activator
* ----------------------------------------------------------------
* ----------------------------------------------------------------
* Copyright (c) 2010 BestSolution.at EDV Systemhaus GmbH
* All Rights Reserved.
*
* BestSolution.at MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE
* SUITABILITY OF THE SOFTWARE , EITHER EXPRESS OR IMPLIED, INCLUDING
* BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
* BestSolution.at SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY
* LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS
* SOFTWARE OR ITS DERIVATIVES.
*
* This software must not be used, redistributed or based from in
* any other than the designated way without prior explicit written
* permission by BestSolution.at.
* -----------------------------------------------------------------
* -----------------------------------------------------------------
* $HeadURL: $
* $Revision: $
* Creator: martin.bluehweis@bestsolution.at
* Creation Date: 2012-10-08
*
* $LastChangedDate: $
* $LastChangedBy: $
* ----------------------------------------------------------------
*/
package at.bestsolution.persistence.emap.ecoregenerator;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle.
*/
public class Activator extends AbstractUIPlugin {
/**
* The plug-in ID.
*/
public static final String PLUGIN_ID = "at.bestsolution.persistence.emap.ecoregenerator"; //$NON-NLS-1$
/**
* The shared instance.
*/
private static Activator plugin;
/**
* The constructor.
*/
public Activator() {
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
@Override
public final void start( final BundleContext context ) throws Exception {
super.start( context );
plugin = this;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
@Override
public final void stop( final BundleContext context ) throws Exception {
plugin = null;
super.stop( context );
}
/**
* Returns the shared instance.
*
* @return the shared instance
*/
public static Activator getDefault() {
return plugin;
}
}