Bug 71640 [IDE] use of deprecated IExtension.getDeclaringPluginDescriptor()
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/Capability.java
* @throws a <code>WorkbenchException</code> if the ID, nature, or wizard is <code>null</code>
     */
    public Capability(IConfigurationElement configElement,
            CapabilityRegistryReader reader) throws WorkbenchException {
        super();
        boolean missingAttribute = false;
        String attr_id = configElement.getAttribute(ATT_ID);
        String attr_nature = configElement.getAttribute(ATT_NATURE_ID);
        if (attr_id == null) {
            reader.logMissingAttribute(configElement, ATT_ID);
            missingAttribute = true;
        }
        if (attr_nature == null) {
            reader.logMissingAttribute(configElement, ATT_NATURE_ID);
            missingAttribute = true;
        }
        if (configElement.getAttribute(ATT_INSTALL_WIZARD) == null) {
            reader.logMissingAttribute(configElement, ATT_INSTALL_WIZARD);
            missingAttribute = true;
        }
        if (missingAttribute)
            throw new WorkbenchException(
                    "Capability missing required attributes."); 
        id = attr_id;
        natureId = attr_nature;
        element = configElement;
        natureDescriptor = ResourcesPlugin.getWorkspace().getNatureDescriptor(
                natureId);
    }
    /**