return proc.getInfo(new NullProgressMonitor()).getTitle();
} else if (resolve instanceof ISearch) {
ISearch search = (ISearch) element;
return search.getInfo(new NullProgressMonitor()).getTitle();
} else if (resolve instanceof IResolveFolder) {
IResolveFolder folder = (IResolveFolder) element;
return folder.getID().toString();
} else {
return resolve.getID().toString();
}
} catch (IOException e) {
CatalogUIPlugin.trace("Error fetching the Title for the resource", e); //$NON-NLS-1$