Bug 71640 [IDE] use of deprecated IExtension.getDeclaringPluginDescriptor()
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/Capability.java
* Creates an instance of <code>Capability</code> as an unknown one
     * for a given nature id.
     * 
     * @param natureId the nature id for the unknown capbility
     */
    public Capability(String natureId) {
        super();
        this.id = natureId;
        this.natureId = natureId;
    }
    /**
     * Adds the id of a capability for which this capability handles
     * the user interface.
     */
    public void addHandleUI(String capabilityId) {
        if (handleUIs == null)
            handleUIs = new ArrayList(4);
        handleUIs.add(capabilityId);
    }
    /**
     * Adds the id of a perspective for which this capability
     * wants to present as a choice in the user interface.
     */
    public void addPerspectiveChoice(String perspId) {
        if (perspectiveChoices == null)
            perspectiveChoices = new ArrayList(4);
        perspectiveChoices.add(perspId);
    }
    public String getId() {
        return id;