]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.g3d/src/org/simantics/g3d/Activator.java
d485b71b949d5479c0deb9333772d1533b1e215e
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / g3d / Activator.java
1 package org.simantics.g3d;\r
2 \r
3 import org.eclipse.ui.plugin.AbstractUIPlugin;\r
4 import org.osgi.framework.BundleContext;\r
5 \r
6 public class Activator extends AbstractUIPlugin {\r
7 \r
8         // The plug-in ID\r
9         public static final String PLUGIN_ID = "org.simantics.g3d"; //$NON-NLS-1$\r
10 \r
11         // The shared instance\r
12         private static Activator plugin;\r
13         \r
14         /**\r
15          * The constructor\r
16          */\r
17         public Activator() {\r
18         }\r
19 \r
20         /*\r
21          * (non-Javadoc)\r
22          * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)\r
23          */\r
24         public void start(BundleContext context) throws Exception {\r
25                 super.start(context);\r
26                 plugin = this;\r
27         }\r
28 \r
29         /*\r
30          * (non-Javadoc)\r
31          * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)\r
32          */\r
33         public void stop(BundleContext context) throws Exception {\r
34                 plugin = null;\r
35                 super.stop(context);\r
36         }\r
37 \r
38         /**\r
39          * Returns the shared instance\r
40          *\r
41          * @return the shared instance\r
42          */\r
43         public static Activator getDefault() {\r
44                 return plugin;\r
45         }\r
46 \r
47 }\r