} catch (Exception e) {
MessageDialog.openError(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Load Error", "Unable to load "
+feedUrl+" ("+e.getMessage()+")");
}
Feed f = null;
if (feed != null) {
feed.getEntries();
f = new Feed();
f.setName(feed.getTitle());
f.setUrl(feed.getLink());
for (Iterator it = feed.getEntries().iterator(); it.hasNext();) {
SyndEntry entry = (SyndEntry) it.next();
Entry modelEntry = new Entry();
modelEntry.setTitle(entry.getTitle());
modelEntry.setUrl(entry.getLink());
modelEntry.setPublishDate(entry.getPublishedDate());
modelEntry.setAuthor(entry.getAuthor());
modelEntry.setHtml(entry.getDescription().getValue());
f.addEntry(modelEntry);
}
}
return f;
}