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