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/CapabilityRegistryReader.java
private Capability currentCapability;
    /**
     * Reads an element of the plugin registry and adds it to the capability
     * registry if it is a capability or category (or a handleUI element, a
     * child of a capability. A handleUI element represents another capability
     * for which this capability controls the user interface).
     */
    protected boolean readElement(IConfigurationElement element) {
        String name = element.getName();
        if (name.equals(TAG_CAPABILITY))
            return readCapability(element);
        if (name.equals(TAG_CATEGORY))
            return readCategory(element);
        if (name.equals(TAG_HANDLE_UI))
            return readHandleUI(element);
        if (name.equals(TAG_PERSPECTIVE_CHOICE))
            return readPerspectiveChoice(element);
        return false;
    }
    /**
     * Reads a capability and adds it to the capability registry. Reads all
     * children elements (which will be handleUI elements) as well and adds
     * them to the capability.
     */
    private boolean readCapability(IConfigurationElement element) {
        try {
            Capability capability = new Capability(element, this);
            capabilityRegistry.addCapability(capability);
            currentCapability = capability;
            readElementChildren(element);