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/IDERegistryReader.java
}
    /**
     * Read one extension by looping through its
     * configuration elements.
     */
    protected void readExtension(IExtension extension) {
        readElements(extension.getConfigurationElements());
    }
    /**
     *	Start the registry reading process using the
     * supplied plugin ID and extension point.
     */
    protected void readRegistry(IPluginRegistry registry, String pluginId,
            String extensionPoint) {
        String pointId = pluginId + "-" + extensionPoint; 
        IExtension[] extensions = (IExtension[]) extensionPoints.get(pointId);
        if (extensions == null) {
            IExtensionPoint point = registry.getExtensionPoint(pluginId,
                    extensionPoint);
            if (point == null)
                return;
            extensions = point.getExtensions();
            extensions = orderExtensions(extensions);
            extensionPoints.put(pointId, extensions);
        }
        for (int i = 0; i < extensions.length; i++)
            readExtension(extensions[i]);
    }
}