/******************************************************************************* * Copyright (c) 2016 Ericsson * * 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 *******************************************************************************/ package org.eclipse.tracecompass.analysis.timing.core.tests; import org.eclipse.core.runtime.Plugin; import org.osgi.framework.BundleContext; /** * Activator for this plugin * * @author Bernd Hufmann */ public class Activator extends Plugin { // ------------------------------------------------------------------------ // Attributes // ------------------------------------------------------------------------ /** * The plug-in ID */ public static final String PLUGIN_ID = "org.eclipse.tracecompass.analysis.timing.core.tests"; //$NON-NLS-1$ /** * The shared instance */ private static Activator PLUGIN; // ------------------------------------------------------------------------ // Constructors // ------------------------------------------------------------------------ /** * The constructor */ public Activator() { } // ------------------------------------------------------------------------ // Accessors // ------------------------------------------------------------------------ /** * Returns the shared instance * * @return the shared instance */ public static Activator getDefault() { return PLUGIN; } // ------------------------------------------------------------------------ // Operators // ------------------------------------------------------------------------ @Override public void start(BundleContext context) throws Exception { super.start(context); PLUGIN = this; } @Override public void stop(BundleContext context) throws Exception { PLUGIN = null; super.stop(context); } }