trace/traceviewer/com.nokia.traceviewer.ost/src/com/nokia/traceviewer/ost/OstPlugin.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 * OST Plugin |
|
17 * |
|
18 */ |
|
19 package com.nokia.traceviewer.ost; |
|
20 |
|
21 import org.eclipse.ui.plugin.AbstractUIPlugin; |
|
22 import org.osgi.framework.BundleContext; |
|
23 |
|
24 /** |
|
25 * The activator class controls the plug-in life cycle |
|
26 * |
|
27 */ |
|
28 public class OstPlugin extends AbstractUIPlugin { |
|
29 |
|
30 /** |
|
31 * The plug-in ID |
|
32 */ |
|
33 public static final String PLUGIN_ID = "com.nokia.traceviewer.ost"; //$NON-NLS-1$ |
|
34 |
|
35 /** |
|
36 * The shared instance |
|
37 */ |
|
38 private static OstPlugin plugin; |
|
39 |
|
40 /** |
|
41 * The constructor |
|
42 */ |
|
43 public OstPlugin() { |
|
44 plugin = this; |
|
45 } |
|
46 |
|
47 /* |
|
48 * (non-Javadoc) |
|
49 * |
|
50 * @see |
|
51 * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext |
|
52 * ) |
|
53 */ |
|
54 @Override |
|
55 public void start(BundleContext context) throws Exception { |
|
56 super.start(context); |
|
57 } |
|
58 |
|
59 /* |
|
60 * (non-Javadoc) |
|
61 * |
|
62 * @see |
|
63 * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext |
|
64 * ) |
|
65 */ |
|
66 @Override |
|
67 public void stop(BundleContext context) throws Exception { |
|
68 plugin = null; |
|
69 super.stop(context); |
|
70 } |
|
71 |
|
72 /** |
|
73 * Returns the shared instance |
|
74 * |
|
75 * @return the shared instance |
|
76 */ |
|
77 public static OstPlugin getDefault() { |
|
78 return plugin; |
|
79 } |
|
80 } |