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
return results;
    }
    /**
     * Finds the category for each specified identifier.
     * Any <code>null</code> entries in the resulting array
     * are for identifiers to which no category exist.
     * 
     * @return an array of <code>ICategory</code>
     */
    public Category[] findCategories(String[] ids) {
        int count = categories.size();
        Category[] results = new Category[ids.length];
        for (int i = 0; i < ids.length; i++) {
            String id = ids[i];
            for (int j = 0; j < count; j++) {
                Category cat = (Category) categories.get(j);
                if (cat.getId().equals(id)) {
                    results[i] = cat;
                    break;
                }
            }
        }
        return results;
    }
    /* (non-Javadoc)
     * Method declared on IAdaptable.
     */
    public Object getAdapter(Class adapter) {
        if (adapter == IWorkbenchAdapter.class)
            return this;