2010-01-19 Francois Chouinard <fchouinard@gmail.com>
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf / src / org / eclipse / linuxtools / tmf / TmfCorePlugin.java
CommitLineData
8c8bf09f 1/*******************************************************************************
1f506a43 2 * Copyright (c) 2009 Ericsson
8c8bf09f
ASL
3 *
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
8 *
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.tmf;
14
1f506a43 15import org.eclipse.ui.plugin.AbstractUIPlugin;
8c8bf09f
ASL
16import org.osgi.framework.BundleContext;
17
18/**
19 * <b><u>TmfCorePlugin</u></b>
20 * <p>
1f506a43 21 * The activator class controls the plug-in life cycle
8c8bf09f 22 */
1f506a43 23public class TmfCorePlugin extends AbstractUIPlugin {
8c8bf09f 24
1f506a43 25 // ========================================================================
8c8bf09f 26 // Attributes
1f506a43 27 // ========================================================================
8c8bf09f
ASL
28
29 // The plug-in ID
30 public static final String PLUGIN_ID = "org.eclipse.linuxtools.tmf";
31
32 // The shared instance
1f506a43 33 private static TmfCorePlugin plugin;
8c8bf09f 34
1f506a43 35 // ========================================================================
8c8bf09f 36 // Constructors
1f506a43 37 // ========================================================================
8c8bf09f
ASL
38
39 /**
40 * The constructor
41 */
42 public TmfCorePlugin() {
8c8bf09f
ASL
43 }
44
1f506a43 45 // ========================================================================
8c8bf09f 46 // Accessors
1f506a43 47 // ========================================================================
8c8bf09f
ASL
48
49 /**
50 * @return the shared instance
51 */
52 public static TmfCorePlugin getDefault() {
1f506a43 53 return plugin;
8c8bf09f
ASL
54 }
55
1f506a43
FC
56 // ========================================================================
57 // Operators
58 // ========================================================================
8c8bf09f 59
1f506a43
FC
60 /*
61 * (non-Javadoc)
62 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
63 */
82b08e62 64 @Override
8c8bf09f
ASL
65 public void start(BundleContext context) throws Exception {
66 super.start(context);
1f506a43 67 plugin = this;
8c8bf09f
ASL
68 }
69
1f506a43
FC
70 /*
71 * (non-Javadoc)
72 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
73 */
82b08e62 74 @Override
8c8bf09f 75 public void stop(BundleContext context) throws Exception {
1f506a43 76 plugin = null;
8c8bf09f
ASL
77 super.stop(context);
78 }
79
80}
This page took 0.029045 seconds and 5 git commands to generate.