]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/Activator.java
3D framework (Simca 2012)
[simantics/3d.git] / org.simantics.g3d.vtk / src / org / simantics / g3d / vtk / Activator.java
1 package org.simantics.g3d.vtk;\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         public static final String PLUGIN_ID = "org.simantics.g3d.vtk"; //$NON-NLS-1$\r
9         \r
10         private static Activator plugin;\r
11         \r
12         \r
13         /*\r
14          * (non-Javadoc)\r
15          * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)\r
16          */\r
17         public void start(BundleContext context) throws Exception {\r
18                 super.start(context);\r
19                 plugin = this;\r
20         }\r
21 \r
22         /*\r
23          * (non-Javadoc)\r
24          * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)\r
25          */\r
26         public void stop(BundleContext context) throws Exception {\r
27                 plugin = null;\r
28                 super.stop(context);\r
29         }\r
30 \r
31         /**\r
32          * Returns the shared instance\r
33          *\r
34          * @return the shared instance\r
35          */\r
36         public static Activator getDefault() {\r
37                 return plugin;\r
38         }\r
39 \r
40 }\r