Commit | Line | Data |
---|---|---|
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 | ||
13 | package org.eclipse.linuxtools.tmf; | |
14 | ||
1f506a43 | 15 | import org.eclipse.ui.plugin.AbstractUIPlugin; |
8c8bf09f ASL |
16 | import 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 | 23 | public 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 | */ | |
8c8bf09f ASL |
64 | public void start(BundleContext context) throws Exception { |
65 | super.start(context); | |
1f506a43 | 66 | plugin = this; |
8c8bf09f ASL |
67 | } |
68 | ||
1f506a43 FC |
69 | /* |
70 | * (non-Javadoc) | |
71 | * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) | |
72 | */ | |
8c8bf09f | 73 | public void stop(BundleContext context) throws Exception { |
1f506a43 | 74 | plugin = null; |
8c8bf09f ASL |
75 | super.stop(context); |
76 | } | |
77 | ||
78 | } |