@Override
            public void linkExited(HyperlinkEvent e) {
                if (this.oldSelection != null && editor.getTextViewer() != null) {
                    editor.getTextViewer().setSelectedRange(this.oldSelection.x, this.oldSelection.y);
                    this.oldSelection = null;
                }
            }
Show info from annotations on the specified line
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/util/SQLAnnotationHover.java