]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/impl/Activator.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scenegraph.profile / src / org / simantics / scenegraph / profile / impl / Activator.java
1 package org.simantics.scenegraph.profile.impl;\r
2 import org.eclipse.core.runtime.Plugin;\r
3 import org.osgi.framework.BundleContext;\r
4 \r
5 \r
6 \r
7 public class Activator extends Plugin {\r
8 \r
9     // The plug-in ID\r
10     public static final String PLUGIN_ID = "org.simantics.scenegraph.profile";\r
11 \r
12     // The shared instance\r
13     private static Activator       plugin;\r
14 \r
15     /*\r
16      * (non-Javadoc)\r
17      * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)\r
18      */\r
19     @Override\r
20     public void start(BundleContext context) throws Exception {\r
21         super.start(context);\r
22         plugin = this;\r
23     }\r
24 \r
25     /*\r
26      * (non-Javadoc)\r
27      * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)\r
28      */\r
29     @Override\r
30     public void stop(BundleContext context) throws Exception {\r
31         plugin = null;\r
32         super.stop(context);\r
33     }\r
34 \r
35     /**\r
36      * Returns the shared instance\r
37      *\r
38      * @return the shared instance\r
39      */\r
40     public static Activator getDefault() {\r
41         return plugin;\r
42     }\r
43 \r
44 }\r