]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling/src/org/simantics/modeling/internal/Activator.java
Merge branch 'feature/funcwrite'
[simantics/platform.git] / bundles / org.simantics.modeling / src / org / simantics / modeling / internal / Activator.java
index f090be06c6bc1d1335a28d53a8b1b673820b2674..3fc0d46fa58cb34e2f5c77f39696b816cc244f67 100644 (file)
@@ -10,9 +10,12 @@ import org.simantics.scl.compiler.source.repository.ModuleSourceRepository;
 
 public class Activator implements BundleActivator {
 
+    private static BundleContext context;
+    
     @SuppressWarnings({ "rawtypes", "unchecked" })
     @Override
     public void start(BundleContext context) throws Exception {
+        Activator.context = context;
         Hashtable properties = new Hashtable();
         
         context.registerService(ModuleSourceRepository.class, OntologyModuleSourceRepository.INSTANCE, properties);
@@ -23,5 +26,7 @@ public class Activator implements BundleActivator {
     public void stop(BundleContext context) throws Exception {
     }
 
-    
+    public static BundleContext getContext() {
+        return context;
+    }
 }