sysperfana/memspyext/com.nokia.s60tools.swmtanalyser.thirdpartysources/src/com/nokia/s60tools/swmtanalyser/thirdpartysources/Activator.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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 */ |
|
17 package com.nokia.s60tools.swmtanalyser.thirdpartysources; |
|
18 |
|
19 import org.eclipse.ui.plugin.AbstractUIPlugin; |
|
20 import org.osgi.framework.BundleContext; |
|
21 |
|
22 /** |
|
23 * The activator class controls the plug-in life cycle |
|
24 */ |
|
25 public class Activator extends AbstractUIPlugin { |
|
26 |
|
27 /** |
|
28 * The plug-in ID for third party sources plugin |
|
29 */ |
|
30 public static final String PLUGIN_ID = "com.nokia.s60tools.swmtanalyser.thirdpartysources"; |
|
31 |
|
32 // The shared instance |
|
33 private static Activator plugin; |
|
34 |
|
35 /** |
|
36 * The constructor |
|
37 */ |
|
38 public Activator() { |
|
39 plugin = this; |
|
40 } |
|
41 |
|
42 /* |
|
43 * (non-Javadoc) |
|
44 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) |
|
45 */ |
|
46 public void start(BundleContext context) throws Exception { |
|
47 super.start(context); |
|
48 } |
|
49 |
|
50 /* |
|
51 * (non-Javadoc) |
|
52 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) |
|
53 */ |
|
54 public void stop(BundleContext context) throws Exception { |
|
55 plugin = null; |
|
56 super.stop(context); |
|
57 } |
|
58 |
|
59 /** |
|
60 * Returns the shared instance |
|
61 * |
|
62 * @return the shared instance |
|
63 */ |
|
64 public static Activator getDefault() { |
|
65 return plugin; |
|
66 } |
|
67 |
|
68 } |