blob: 81c76ae71a2082f7828b133ebbe7ee01e3d52237 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2018 ALL4TEC.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Thanh Liem PHAN (ALL4TEC) - initial API and implementation
*******************************************************************************/
package org.eclipse.opencert.infra.dashboard;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle.
*/
public class DashboardActivator extends AbstractUIPlugin {
/** The plug-in ID. */
public static final String PLUGIN_ID = "org.eclipse.opencert.infra.dashboard"; //$NON-NLS-1$
/** The shared instance. */
private static DashboardActivator sPlugin;
/**
* The default constructor.
*/
public DashboardActivator() {
super();
}
/**
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext pContext) throws Exception {
super.start(pContext);
sPlugin = this;
}
/**
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext pContext) throws Exception {
sPlugin = null;
super.stop(pContext);
}
/**
* Return the shared instance.
*
* @return the shared instance
*/
public static DashboardActivator getDefault() {
return sPlugin;
}
}