]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document/src/org/simantics/document/Activator.java
Filter also history items in resource search dialog
[simantics/platform.git] / bundles / org.simantics.document / src / org / simantics / document / Activator.java
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
9  *
10  * Contributors:
11  *     Semantum Oy - initial API and implementation
12  *******************************************************************************/
13 package org.simantics.document;
14
15 import org.osgi.framework.BundleActivator;
16 import org.osgi.framework.BundleContext;
17
18 public class Activator implements BundleActivator {
19
20         // The plug-in ID
21         public static final String PLUGIN_ID = "org.simantics.document"; //$NON-NLS-1$
22
23         private static BundleContext context;
24
25         static BundleContext getContext() {
26                 return context;
27         }
28
29         /*
30          * (non-Javadoc)
31          * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
32          */
33         public void start(BundleContext bundleContext) throws Exception {
34                 Activator.context = bundleContext;
35         }
36
37         /*
38          * (non-Javadoc)
39          * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
40          */
41         public void stop(BundleContext bundleContext) throws Exception {
42                 Activator.context = null;
43         }
44
45 }