Bug 135088 [JFace] AbstractResourceManager.find() returns a RefCount instead of the created resource
M6 If you attempt to call find on an AbstractResourceManager subclass you will get back a RefCount object instead of the resource bound to the desired descriptor. RefCount is a private class that is unusable to clients of this API. This should be addressed for 3.2 to address the intention of the method description.
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/AbstractResourceManager.java
super.dispose();
        
        if (map == null) {
            return;
        }
        
        Collection entries = map.entrySet();
        for (Iterator iter = entries.iterator(); iter.hasNext();) {
            Map.Entry next = (Map.Entry) iter.next();
            
            Object key = next.getKey();
            RefCount val = (RefCount)next.getValue();
            
            deallocate(val.resource, (DeviceResourceDescriptor)key);
        }
        
        map = null;
    }
    
    /* (non-Javadoc)
     * @see org.eclipse.jface.resource.ResourceManager#find(org.eclipse.jface.resource.DeviceResourceDescriptor)
     */
    public Object find(DeviceResourceDescriptor descriptor) {
        if (map == null) {
            return null;
        }
        return map.get(descriptor);
    }
}