--- /dev/null
+package org.simantics.db.internal;\r
+\r
+import org.eclipse.core.runtime.Plugin;\r
+import org.osgi.framework.BundleContext;\r
+\r
+public class Activator extends Plugin {\r
+\r
+ // The plug-in ID\r
+ public static final String PLUGIN_ID = "org.simantics.db";\r
+\r
+ private static Activator activator;\r
+\r
+ private static BundleContext context;\r
+\r
+ @Override\r
+ public void start(BundleContext context) throws Exception {\r
+ activator = this;\r
+ Activator.context = context;\r
+ super.start(context);\r
+ }\r
+\r
+ @Override\r
+ public void stop(BundleContext context) throws Exception {\r
+ super.stop(context);\r
+ Activator.context = null;\r
+ activator = null;\r
+ }\r
+\r
+ public static Activator getDefault() {\r
+ return activator;\r
+ }\r
+ \r
+ public static BundleContext getContext() {\r
+ return context;\r
+ }\r
+\r
+}\r