1 11 package org.eclipse.jface.internal; 12 13 import org.osgi.framework.*; 14 15 21 public class JFaceActivator implements BundleActivator { 22 23 private static BundleContext bundleContext; 24 25 28 public void start(BundleContext context) throws Exception { 29 bundleContext = context; 30 } 31 32 35 public void stop(BundleContext context) throws Exception { 36 bundleContext = null; 37 } 38 39 46 public static BundleContext getBundleContext() { 47 return bundleContext; 48 } 49 50 56 public static Bundle getBundle() { 57 return bundleContext == null ? null : bundleContext.getBundle(); 58 } 59 60 } 61 | Popular Tags |