1 /*******************************************************************************
2 * Copyright (c) 2011, 2014 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Francois Chouinard - Initial API and implementation
11 * Patrick Tasse - Updated for TMF 2.0
12 *******************************************************************************/
14 package org
.eclipse
.tracecompass
.internal
.gdbtrace
.core
;
16 import org
.eclipse
.core
.runtime
.Plugin
;
17 import org
.osgi
.framework
.BundleContext
;
20 * GDB Tracepoint Analysis Core plug-in activator
21 * @author Francois Chouinard
23 public class GdbTraceCorePlugin
extends Plugin
{
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
30 public static final String PLUGIN_ID
= "org.eclipse.linuxtools.gdbtrace.core"; //$NON-NLS-1$
32 private static GdbTraceCorePlugin plugin
;
34 private static BundleContext fBundleContext
;
36 // ------------------------------------------------------------------------
38 // ------------------------------------------------------------------------
43 public GdbTraceCorePlugin() {
46 // ------------------------------------------------------------------------
48 // ------------------------------------------------------------------------
51 public void start(BundleContext context
) throws Exception
{
54 fBundleContext
= context
;
58 public void stop(BundleContext context
) throws Exception
{
63 // ------------------------------------------------------------------------
65 // ------------------------------------------------------------------------
68 * Returns the GDB Tracepoints Core plug-in instance.
70 * @return the GDB Tracepoints Core plug-in instance
72 public static GdbTraceCorePlugin
getDefault() {
77 * Returns the bundle context
79 * @return the bundle context
81 public static BundleContext
getBundleContext() {
82 return fBundleContext
;