Bug 277213 JFace does not run stand-alone
bundles/org.eclipse.jface/src/org/eclipse/jface/internal/JFaceActivator.java
public void start(BundleContext context) throws Exception {
		bundleContext = context;
	}
	/* (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
	 */
	public void stop(BundleContext context) throws Exception {
		bundleContext = null;
	}
	/**
	 * Return the bundle context for this bundle, or <code>null</code> if
	 * there is not one. (for instance if the bundle is not activated or we aren't
	 * running OSGi.
	 * 
	 * @return the bundle context or <code>null</code>
	 */
	public static BundleContext getBundleContext() {
		return bundleContext;
	}
	/**
	 * Return the Bundle object for JFace. Returns <code>null</code> if it is not
	 * available.
	 * 
	 * @return the bundle or <code>null</code>
	 */
	public static Bundle getBundle() {
		return bundleContext == null ? null : bundleContext.getBundle();
	}
}