|
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 the License "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 |
|
18 package com.nokia.carbide.cpp.pi.wizards; |
|
19 |
|
20 import org.eclipse.ui.plugin.AbstractUIPlugin; |
|
21 import org.osgi.framework.BundleContext; |
|
22 |
|
23 /** |
|
24 * The main plugin class to be used in the desktop. |
|
25 */ |
|
26 public class WizardsPlugin extends AbstractUIPlugin { |
|
27 public static final String PLUGIN_ID = "com.nokia.carbide.cpp.pi.wizards"; //$NON-NLS-1$ |
|
28 public static final String PHONENSIS_IMAGE_ID = "phonensis.image"; //$NON-NLS-1$ |
|
29 public static final String PHONE_IMAGE_ID = "phone.image"; //$NON-NLS-1$ |
|
30 public static final String SIS_IMAGE_ID = "sis.image"; //$NON-NLS-1$ |
|
31 public static final String CUSTRACE_IMAGE_ID = "custrace.image"; //$NON-NLS-1$ |
|
32 |
|
33 //The shared instance. |
|
34 private static WizardsPlugin plugin; |
|
35 |
|
36 /** |
|
37 * The constructor. |
|
38 */ |
|
39 public WizardsPlugin() { |
|
40 plugin = this; |
|
41 } |
|
42 |
|
43 /** |
|
44 * This method is called upon plug-in activation |
|
45 */ |
|
46 public void start(BundleContext context) throws Exception { |
|
47 super.start(context); |
|
48 } |
|
49 |
|
50 /** |
|
51 * This method is called when the plug-in is stopped |
|
52 */ |
|
53 public void stop(BundleContext context) throws Exception { |
|
54 super.stop(context); |
|
55 plugin = null; |
|
56 } |
|
57 |
|
58 /** |
|
59 * Returns the shared instance. |
|
60 */ |
|
61 public static WizardsPlugin getDefault() { |
|
62 return plugin; |
|
63 } |
|
64 } |