Bug 40785 [plan item] Overview ruler improvements
- navigation from ruler to editor - hovering over header area shows number of errors/warning (header annotations in general)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
* Next/Previous tool bar drop down menu and if it is checked.
	 */
	public void gotoAnnotation(boolean forward) {
		
		ISelectionProvider provider= getSelectionProvider();
		
		ITextSelection s= (ITextSelection) provider.getSelection();
		Position annotationPosition= new Position(0, 0);
		IJavaAnnotation nextAnnotation= getNextAnnotation(s.getOffset(), s.getLength(),forward, annotationPosition);
		
		setStatusLineErrorMessage(null);
		if (nextAnnotation != null) {
			
			IMarker marker= null;
			if (nextAnnotation instanceof MarkerAnnotation)
				marker= ((MarkerAnnotation) nextAnnotation).getMarker();
			else {
				Iterator e= nextAnnotation.getOverlaidIterator();
				if (e != null) {
					while (e.hasNext()) {
						Object o= e.next();
						if (o instanceof MarkerAnnotation) {
							marker= ((MarkerAnnotation) o).getMarker();
							break;
						}
					}
				}
			}
			
			if (marker != null) {