Skip to main content
summaryrefslogblamecommitdiffstats
blob: 4a37a72cb28e8f9794057bbec056d0e8ba0fbb8a (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                 

                                            

                                          
 



                                                        


                                                                                
 


                                              
 




                                                              
 




                                                             
 


                                      
 
 
/*******************************************************************************
 * Copyright (c) 2004, 2007 Boeing.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Boeing - initial API and implementation
 *******************************************************************************/
package org.eclipse.osee.ote.runtimemanager;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

/**
 * @author Robert A. Fisher
 */
public class RuntimeManager implements BundleActivator {
   public static final String BUNDLE_ID = "org.eclipse.osee.ote.runtimeManager";
   private static RuntimeManager instance;
   private BundleContext context;

   public static RuntimeManager getDefault() {
      return instance;
   }

   @Override
   public void start(BundleContext context) throws Exception {
      instance = this;
      this.context = context;
   }

   @Override
   public void stop(BundleContext context) throws Exception {
      instance = null;
      this.context = null;
   }

   public BundleContext getContext() {
      return context;
   }

}

Back to the top