Debian Codegraph @

bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/pde/internal/publishing/Activator.java

raw
1 /*******************************************************************************
2 * Copyright (c) 2011, 2017 SAP AG and others.
3 *
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
8 *
9 * SPDX-License-Identifier: EPL-2.0
10 *
11 * Contributors:
12 * SAP AG - consolidation of publishers for PDE formats
13 *******************************************************************************/
14 package org.eclipse.pde.internal.publishing;
15
16 import org.osgi.framework.BundleActivator;
17 import org.osgi.framework.BundleContext;
18
19 public class Activator implements BundleActivator {
20 private static BundleContext context;
21 public static String ID = "org.eclipse.equinox.p2.publisher.eclipse"; //$NON-NLS-1$
22
23 public static BundleContext getContext() {
24 return context;
25 }
26
27 @Override
28 public void start(BundleContext bundleContext) throws Exception {
29 Activator.context = bundleContext;
30 }
31
32 @Override
33 public void stop(BundleContext bundleContext) throws Exception {
34 Activator.context = null;
35 }
36 }