if (bookmark.isErrorLoading()) {
/* Overlay with Error Icon if required */
if (favicon != null) {
Image faviconImg = OwlUI.getImage(fResources, favicon);
DecorationOverlayIcon overlay = new DecorationOverlayIcon(faviconImg, OwlUI.getImageDescriptor("icons/ovr16/error.gif"), IDecoration.BOTTOM_RIGHT); //$NON-NLS-1$
return OwlUI.getImage(fResources, overlay);
}
/* Default Error Icon */
return fBookMarkErrorIcon;
}
/* Use normal Icon */
Image icon = favicon != null ? OwlUI.getImage(fResources, favicon) : fBookMarkIcon;
/* Overlay if News are *new* */
if (hasNew) {
DecorationOverlayIcon overlay = new DecorationOverlayIcon(icon, OwlUI.getImageDescriptor("icons/ovr16/new.gif"), IDecoration.BOTTOM_RIGHT); //$NON-NLS-1$
return OwlUI.getImage(fResources, overlay);
}
/* Don't overlay */
return icon;