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/CapabilityRegistry.java
}
                    results.add(cap);
                }
            }
            if (results.size() == 0) {
                return EMPTY_CAP_LIST;
            } else {
                Capability[] caps = new Capability[results.size()];
                results.toArray(caps);
                return caps;
            }
        } catch (CoreException e) {
            return EMPTY_CAP_LIST;
        }
    }
    /**
     * Returns whether the registry contains any capabilities.
     */
    public boolean hasCapabilities() {
        return !capabilities.isEmpty();
    }
    /**
     * Returns whether the specified capability has any prerequisites.
     */
    public boolean hasPrerequisites(Capability capability) {
        return getPrerequisiteIds(capability).length > 0;
    }
    /**
     * Loads capabilities and capability categories from the platform's plugin
     * registry.