protected XtextBrowserInformationControlInput getHoverInfo(EObject element,
IRegion hoverRegion, XtextBrowserInformationControlInput previous) {
if (!(element instanceof Image)) {
return super.getHoverInfo(element, hoverRegion, previous);
}
Image image = (Image) element;
StringBuffer buffer = new StringBuffer();
addImageAndLabel(buffer, image);
HTMLPrinter.insertPageProlog(buffer, 0, getStyleSheet());
HTMLPrinter.addPageEpilog(buffer);