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/ProjectImageRegistryReader.java
return true;
        }
        String natureId = element.getAttribute(ATT_NATURE_ID);
        if (natureId == null) {
            logMissingAttribute(element, ATT_NATURE_ID);
            return true;
        }
        String icon = element.getAttribute(ATT_ICON);
        if (icon == null) {
            logMissingAttribute(element, ATT_ICON);
            return true;
        }
		String extendingPluginId = element.getNamespace();
		ImageDescriptor image = AbstractUIPlugin.imageDescriptorFromPlugin(
				extendingPluginId, icon);
        if (image != null)
            registry.setNatureImage(natureId, image);
        return true;
    }
    /**
     * Read the project nature images within a registry.
     */
    public void readProjectNatureImages(IPluginRegistry in,
            ProjectImageRegistry out) {
        registry = out;
        readRegistry(in, IDEWorkbenchPlugin.IDE_WORKBENCH,
                IDEWorkbenchPlugin.PL_PROJECT_NATURE_IMAGES);
    }
}