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