1 /*
2 WSMO Studio - a Semantic Web Service Editor
3 Copyright (c) 2004-2006, Ontotext Lab. / SIRMA Group
4
5 This library is free software; you can redistribute it and/or modify it under
6 the terms of the GNU Lesser General Public License as published by the Free
7 Software Foundation; either version 2.1 of the License, or (at your option)
8 any later version.
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 details.
13 You should have received a copy of the GNU Lesser General Public License along
14 with this library; if not, write to the Free Software Foundation, Inc.,
15 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 */
17
18 /***
19 * <p>Title: WSMO Studio</p>
20 * <p>Description: Semantic Web Service Editor</p>
21 * <p>Copyright: Copyright (c) 2004-2006</p>
22 * <p>Company: Ontotext Lab. / SIRMA </p>
23 */
24
25 package org.wsmostudio.discovery;
26
27 import org.eclipse.ui.plugin.AbstractUIPlugin;
28 import org.osgi.framework.BundleContext;
29
30 /***
31 * The activator class controls the plug-in life cycle
32 */
33 public class Activator extends AbstractUIPlugin {
34
35 // The plug-in ID
36 public static final String PLUGIN_ID = "org.wsmostudio.discovery";
37
38 // The shared instance
39 private static Activator plugin;
40
41 /***
42 * The constructor
43 */
44 public Activator() {
45 plugin = this;
46 }
47
48 /*
49 * (non-Javadoc)
50 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
51 */
52 public void start(BundleContext context) throws Exception {
53 super.start(context);
54 }
55
56 /*
57 * (non-Javadoc)
58 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
59 */
60 public void stop(BundleContext context) throws Exception {
61 plugin = null;
62 super.stop(context);
63 }
64
65 /***
66 * Returns the shared instance
67 *
68 * @return the shared instance
69 */
70 public static Activator getDefault() {
71 return plugin;
72 }
73
74 }
75
76 /*
77 * $Log$
78 * Revision 1.1 2007/01/26 14:31:37 alex_simov
79 * discovery plug-in moved from EXT module
80 *
81 * Revision 1.1 2006/09/11 15:21:56 alex_simov
82 * QoS discovery adapter
83 *
84 *
85 */