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