Bug 71640 [IDE] use of deprecated IExtension.getDeclaringPluginDescriptor()
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerImageProviderRegistry.java
* and add it to the list of providers.
     */
    public void addProvider(IConfigurationElement element) {
        Descriptor desc = new Descriptor();
        desc.element = element;
        desc.pluginDescriptor = element.getDeclaringExtension()
                .getDeclaringPluginDescriptor();
        desc.id = element.getAttribute(ATT_ID);
        desc.markerType = element.getAttribute(ATT_MARKER_TYPE);
        desc.imagePath = element.getAttribute(ATT_ICON);
        desc.className = element.getAttribute(ATT_PROVIDER_CLASS);
        if (desc.imagePath != null) {
            desc.imageDescriptor = getImageDescriptor(desc);
        }
        if (desc.className == null) {
            
            desc.element = null;
            desc.pluginDescriptor = null;
        }
        descriptors.add(desc);
    }
    /**
     * @see org.eclipse.ui.model.IWorkbenchAdapter#getImageDescriptor(Object)
     */
    public ImageDescriptor getImageDescriptor(IMarker marker) {
        int size = descriptors.size();
        for (int i = 0; i < size; i++) {
            Descriptor desc = (Descriptor) descriptors.get(i);
            try {
                if (marker.isSubtypeOf(desc.markerType)) {