title: Hover text for Marker in Eclipse plugin
body: <p>I have a custom editor with problem markers.
  The markers display correctly in the &quot;problems&quot; view with icon, location and text, and the problem icons display correctly in the left margin of the editor.</p>
  <p>I would like to display the same error message text in a popup when hovering over the problem marker icon in the margin, just as it happens in the Java editor. Right now there in no popup.</p>
  <p>Is there an easy way to achieve this?</p>
  <hr />
  <p><strong>Answer :</strong></p>
  <p>OK, it doesn't look like the functionality is built-in in the marker-system. It seems a patch have been submitted, so it will probably be added in a later version, but until then it is also pretty easy create by hand.</p>
  <ol>
  <li>Create an class that implements <code>IAnnotationHover</code> and implement <code>getHoverInfo()</code>.</li>
  <li>Return the class in <code>getAnnotationHover()</code> method in the <code>SourceViewerConfiguration</code>.</li>
  <li>In <code>getHoverInfo()</code> method, call <code>ISourceViewer.getAnnotationModel().getAnnotationIterator()</code> to get all markers.</li>
  <li>Select the marker(s) that correspond to the line number, and return the marker text.</li>
  </ol>