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
}
	}
	private IJavaAnnotation getNextAnnotation(int offset, int length, boolean forward, Position annotationPosition) {
		IJavaAnnotation nextAnnotation= null;
		Position nextAnnotationPosition= null;
		IJavaAnnotation containingAnnotation= null;
		Position containingAnnotationPosition= null;
		boolean currentAnnotation= false;
		
		IDocument document= getDocumentProvider().getDocument(getEditorInput());
		int endOfDocument= document.getLength(); 
		int distance= 0;
		
		IAnnotationModel model= getDocumentProvider().getAnnotationModel(getEditorInput());
		Iterator e= new JavaAnnotationIterator(model, true);
		while (e.hasNext()) {
			IJavaAnnotation a= (IJavaAnnotation) e.next();
			Preferences workbenchTextEditorPrefStore= Platform.getPlugin("org.eclipse.ui.workbench.texteditor").getPluginPreferences(); 
			Iterator iter= getAnnotationPreferences().getAnnotationPreferences().iterator();
			boolean isNavigationTarget= false;
			while (iter.hasNext()) {
				AnnotationPreference annotationPref= (AnnotationPreference)iter.next();
				if (annotationPref.getAnnotationType().equals(a.getAnnotationType())) {
					String key;
					if (forward)
						key= annotationPref.getIsGoToNextNavigationTargetKey();
					else
						key= annotationPref.getIsGoToPreviousNavigationTargetKey();
					if (key != null)
						isNavigationTarget= workbenchTextEditorPrefStore.getBoolean(key);