I have a custom editor with problem markers. The markers display correctly in the "problems" view with icon, location and text, and the problem icons display corre
This bug in eclipse plug-in xtext proposes a patch to show a marker tooltip on hover and status line. If you look at the attached patches you could find the answers you need.
In your class that extends org.eclipse.jface.text.source.SourceViewerConfiguration, just include the following:
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
return new DefaultAnnotationHover();
}
this includes the text of all markers of a line in the hover text of the problem marker in the margins of the text editor.