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