]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.proconf.g3d.csg/src/org/simantics/proconf/g3d/csg/Activator.java
latest release (0.41), third attempt
[simantics/3d.git] / org.simantics.proconf.g3d.csg / src / org / simantics / proconf / g3d / csg / Activator.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the terms of the Eclipse Public License v1.0\r
5  * which accompanies this distribution, and is available at\r
6  * http://www.eclipse.org/legal/epl-v10.html\r
7  *\r
8  * Contributors:\r
9  *     VTT Technical Research Centre of Finland - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.simantics.proconf.g3d.csg;\r
12 \r
13 import org.eclipse.ui.plugin.AbstractUIPlugin;\r
14 import org.osgi.framework.BundleContext;\r
15 \r
16 /**\r
17  * The activator class controls the plug-in life cycle\r
18  */\r
19 public class Activator extends AbstractUIPlugin {\r
20 \r
21         // The plug-in ID\r
22         public static final String PLUGIN_ID = "fi.vtt.simantics.proconf.g3d.csg";\r
23 \r
24         // The shared instance\r
25         private static Activator plugin;\r
26         \r
27         /**\r
28          * The constructor\r
29          */\r
30         public Activator() {\r
31         }\r
32 \r
33         /*\r
34          * (non-Javadoc)\r
35          * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)\r
36          */\r
37         public void start(BundleContext context) throws Exception {\r
38                 super.start(context);\r
39                 plugin = this;\r
40         }\r
41 \r
42         /*\r
43          * (non-Javadoc)\r
44          * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)\r
45          */\r
46         public void stop(BundleContext context) throws Exception {\r
47                 plugin = null;\r
48                 super.stop(context);\r
49         }\r
50 \r
51         /**\r
52          * Returns the shared instance\r
53          *\r
54          * @return the shared instance\r
55          */\r
56         public static Activator getDefault() {\r
57                 return plugin;\r
58         }\r
59 \r
60 }\r