Bug 186808 [JFace] regression: JFace standalone apps should work without org.eclipse.osgi
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceResources.java
colorRegistry = new ColorRegistry();
		}
		return colorRegistry;
	}
	/**
	 * Returns the global resource manager for the given display
	 * 
	 * @since 3.1
	 * 
	 * @param toQuery
	 *            display to query
	 * @return the global resource manager for the given display
	 */
	public static ResourceManager getResources(final Display toQuery) {
		ResourceManager reg = (ResourceManager) registries.get(toQuery);
		if (reg == null) {
			final DeviceResourceManager mgr = new DeviceResourceManager(toQuery);
			reg = mgr;
			registries.put(toQuery, reg);
			toQuery.disposeExec(new Runnable() {
				/*
				 * (non-Javadoc)
				 * 
				 * @see java.lang.Runnable#run()
				 */
				public void run() {
					mgr.dispose();
					registries.remove(toQuery);
				}
			});