try {
url = new URL(childs[0].getAttribute("url")); //$NON-NLS-1$
} catch(MalformedURLException ex) {
return;
}
ExternalCatalogueImportURLDescriptor d =
new ExternalCatalogueImportURLDescriptor(url);
d.setLabel(element.getAttribute("name")); //$NON-NLS-1$
d.setID(element.getAttribute("id")); //$NON-NLS-1$
d.setDescription(element.getAttribute("description")); //$NON-NLS-1$
d.setListener(element.getAttribute("listener")); //$NON-NLS-1$
d.setViewName(element.getAttribute("viewName")); //$NON-NLS-1$
String ns = element.getNamespace();
String banner = element.getAttribute("image"); //$NON-NLS-1$
if (banner != null)
d.setDescriptionImage(
AbstractUIPlugin.imageDescriptorFromPlugin(ns,banner));
banner = element.getAttribute("icon"); //$NON-NLS-1$
if (banner != null)
d.setIcon(
AbstractUIPlugin.imageDescriptorFromPlugin(ns,banner));
this.descriptors.add(d);
}