Bug 96114 [IDE] should remove dependency on IPluginRegistry
We should remove our dependency on IPluginRegistry in favour of the new IExtensionRegistry. This should be a trivial migration.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/ProjectImageRegistry.java
private Map map = new HashMap(10);
    /**
     * Returns the image for the given nature id or
     * <code>null</code> if no image is registered for the given id
     */
    public ImageDescriptor getNatureImage(String natureId) {
        return (ImageDescriptor) map.get(natureId);
    }
    /**
     * Reads from the plugin registry.
     */
    public void load() {
        ProjectImageRegistryReader reader = new ProjectImageRegistryReader();
        reader.readProjectNatureImages(Platform.getPluginRegistry(), this);
    }
    /**
     * Sets the image for the given nature id
     */
    public void setNatureImage(String natureId, ImageDescriptor image) {
        map.put(natureId, image);
    }
}