1 /*******************************************************************************
2 * Copyright (c) 2015, 2016 Association for Decentralized
3 * Information Management in Industry THTH ry.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the THTH Simantics
6 * Division Member Component License which accompanies this
7 * distribution, and is available at
8 * http://www.simantics.org/legal/sdmcl-v10.html
11 * Semantum Oy - initial API and implementation
12 *******************************************************************************/
13 package org.simantics.document;
15 import org.osgi.framework.BundleActivator;
16 import org.osgi.framework.BundleContext;
18 public class Activator implements BundleActivator {
21 public static final String PLUGIN_ID = "org.simantics.document"; //$NON-NLS-1$
23 private static BundleContext context;
25 static BundleContext getContext() {
31 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
33 public void start(BundleContext bundleContext) throws Exception {
34 Activator.context = bundleContext;
39 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
41 public void stop(BundleContext bundleContext) throws Exception {
42 Activator.context = null;