trace/traceviewer/com.nokia.trace.eventrouter/src/com/nokia/trace/eventrouter/Activator.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 * Plug-in main class |
|
17 * |
|
18 */ |
|
19 package com.nokia.trace.eventrouter; |
|
20 |
|
21 import org.eclipse.core.runtime.Plugin; |
|
22 import org.osgi.framework.BundleContext; |
|
23 |
|
24 /** |
|
25 * The activator class controls the plug-in life cycle |
|
26 * |
|
27 */ |
|
28 public class Activator extends Plugin { |
|
29 |
|
30 /** |
|
31 * The plug-in ID |
|
32 */ |
|
33 public static final String PLUGIN_ID = "com.nokia.trace.eventrouter"; //$NON-NLS-1$ |
|
34 |
|
35 /** |
|
36 * The shared instance |
|
37 */ |
|
38 private static Activator plugin; |
|
39 |
|
40 /** |
|
41 * The constructor |
|
42 */ |
|
43 public Activator() { |
|
44 plugin = this; |
|
45 } |
|
46 |
|
47 /* |
|
48 * (non-Javadoc) |
|
49 * |
|
50 * @see |
|
51 * org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext) |
|
52 */ |
|
53 @Override |
|
54 public void start(BundleContext context) throws Exception { |
|
55 super.start(context); |
|
56 } |
|
57 |
|
58 /* |
|
59 * (non-Javadoc) |
|
60 * |
|
61 * @see |
|
62 * org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext) |
|
63 */ |
|
64 @Override |
|
65 public void stop(BundleContext context) throws Exception { |
|
66 plugin = null; |
|
67 super.stop(context); |
|
68 } |
|
69 |
|
70 /** |
|
71 * Returns the shared instance |
|
72 * |
|
73 * @return the shared instance |
|
74 */ |
|
75 public static Activator getDefault() { |
|
76 return plugin; |
|
77 } |
|
78 |
|
79 } |