-/*******************************************************************************\r
- * Copyright (c) 2015, 2016 Association for Decentralized \r
- * Information Management in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the THTH Simantics \r
- * Division Member Component License which accompanies this \r
- * distribution, and is available at\r
- * http://www.simantics.org/legal/sdmcl-v10.html\r
- *\r
- * Contributors:\r
- * Semantum Oy - initial API and implementation\r
+/*******************************************************************************
+ * Copyright (c) 2015, 2016 Association for Decentralized
+ * Information Management in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the THTH Simantics
+ * Division Member Component License which accompanies this
+ * distribution, and is available at
+ * http://www.simantics.org/legal/sdmcl-v10.html
+ *
+ * Contributors:
+ * Semantum Oy - initial API and implementation
*******************************************************************************/
-package org.simantics.document;\r
-\r
-import org.osgi.framework.BundleActivator;\r
-import org.osgi.framework.BundleContext;\r
-\r
-public class Activator implements BundleActivator {\r
-\r
- private static BundleContext context;\r
-\r
- static BundleContext getContext() {\r
- return context;\r
- }\r
-\r
- /*\r
- * (non-Javadoc)\r
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)\r
- */\r
- public void start(BundleContext bundleContext) throws Exception {\r
- Activator.context = bundleContext;\r
- }\r
-\r
- /*\r
- * (non-Javadoc)\r
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)\r
- */\r
- public void stop(BundleContext bundleContext) throws Exception {\r
- Activator.context = null;\r
- }\r
-\r
-}\r
+package org.simantics.document;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class Activator implements BundleActivator {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.simantics.document"; //$NON-NLS-1$
+
+ private static BundleContext context;
+
+ static BundleContext getContext() {
+ return context;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext bundleContext) throws Exception {
+ Activator.context = bundleContext;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext bundleContext) throws Exception {
+ Activator.context = null;
+ }
+
+}