]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.export.core/src/org/simantics/export/core/internal/Activator.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.export.core / src / org / simantics / export / core / internal / Activator.java
1 package org.simantics.export.core.internal;
2
3 import org.osgi.framework.BundleActivator;
4 import org.osgi.framework.BundleContext;
5
6 /**
7  * @author Tuukka Lehtonen
8  * @since 1.22.2
9  */
10 public class Activator implements BundleActivator {
11
12         private static BundleContext context;
13
14         public static BundleContext getContext() {
15                 return context;
16         }
17
18         @Override
19         public void start(BundleContext context) throws Exception {
20                 Activator.context = context;
21         }
22
23         @Override
24         public void stop(BundleContext context) throws Exception {
25                 Activator.context = null;
26         }
27
28 }