]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.views.swt/src/org/simantics/views/swt/Activator.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.views.swt / src / org / simantics / views / swt / Activator.java
1 package org.simantics.views.swt;
2
3 import org.osgi.framework.BundleActivator;
4 import org.osgi.framework.BundleContext;
5
6 public class Activator implements BundleActivator {
7
8         public static final String PLUGIN_ID = "org.simantics.views.swt";
9         
10         private static BundleContext context;
11
12         static BundleContext getContext() {
13                 return context;
14         }
15
16         /*
17          * (non-Javadoc)
18          * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
19          */
20         public void start(BundleContext bundleContext) throws Exception {
21                 Activator.context = bundleContext;
22         }
23
24         /*
25          * (non-Javadoc)
26          * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
27          */
28         public void stop(BundleContext bundleContext) throws Exception {
29                 Activator.context = null;
30         }
31
32 }