121314151617181920212223
@Override public String getHoverInfo(ITextViewer tv, IRegion r) { try { IDocument doc = tv.getDocument(); ToolModel em = ToolModel.getModel(doc, null); return em.getElementAt(r.getOffset()). getHoverHelp(); } catch (Exception e) { return ""; }