/******************************************************************************* * Copyright (c) 2011, 2015 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 * * Contributors: * Francois Chouinard - Initial API and implementation * Patrick Tasse - Updated for TMF 2.0 *******************************************************************************/ package org.eclipse.tracecompass.internal.gdbtrace.ui; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.osgi.framework.BundleContext; /** * GDB Tracepoint Analysis UI plug-in activator * @author Francois Chouinard */ public class GdbTraceUIPlugin extends AbstractUIPlugin { // ------------------------------------------------------------------------ // Attributes // ------------------------------------------------------------------------ /** The plug-in ID */ public static final String PLUGIN_ID = "org.eclipse.tracecompass.gdbtrace.ui"; //$NON-NLS-1$ private static GdbTraceUIPlugin plugin; // ------------------------------------------------------------------------ // Constructor // ------------------------------------------------------------------------ /** * Constructor */ public GdbTraceUIPlugin() { } // ------------------------------------------------------------------------ // AbstractUIPlugin // ------------------------------------------------------------------------ @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); } // ------------------------------------------------------------------------ // Accessor // ------------------------------------------------------------------------ /** * Returns the GDB Tracepoints UI plug-in instance. * * @return the GDB Tracepoints UI plug-in instance */ public static GdbTraceUIPlugin getDefault() { return plugin; } }