Bug 299172 e4.ui.services dependency on org.eclipse.core.runtime
The bundle org.eclipse.e4.ui.services uses the core.runtime bundle and the Platform class. This is a global singleton so it should be avoided.
bundles/org.eclipse.e4.ui.services/src/org/eclipse/e4/ui/internal/services/Activator.java
contextServiceReg = null;
		}
		if (handlerServiceReg != null) {
			handlerServiceReg.unregister();
			handlerServiceReg = null;
		}
		
		if (eventAdminTracker != null) {
			eventAdminTracker.close();
			eventAdminTracker = null;
		}
		bundleContext = null;
		singleton = null;
	}
	
	public BundleContext getBundleContext() {
		return bundleContext;
	}
	
	public void logError(String msg) {
		if (bundleContext == null) { 
			if (System.err != null)
				System.err.println(msg);
			return;
		}
		ILog log = Platform.getLog(bundleContext.getBundle());
		log.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, msg));
	}
}