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