Bug 41443 overview ruler not working
smoke test for 20030812 The overview ruler in the Java editor does not work when starting with a fresh workspace as described in the smoke test scenario.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
selectAndReveal(annotationPosition.getOffset(), annotationPosition.getLength());
			if (nextAnnotation.isProblem())
				setStatusLineErrorMessage(nextAnnotation.getMessage());
		}
	}
	private IJavaAnnotation getNextAnnotation(int offset, boolean forward, Position annotationPosition) {
		
		IJavaAnnotation nextAnnotation= null;
		Position nextAnnotationPosition= null;
		
		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();
			
			
			
			String type= null;
			int severity= IMarker.SEVERITY_INFO;				
			if (a.getAnnotationType() == AnnotationType.BOOKMARK) {
				type= IMarker.BOOKMARK;
			} else if (a.getAnnotationType() == AnnotationType.SEARCH) {
				type= SearchUI.SEARCH_MARKER;
			} else if (a.getAnnotationType() == AnnotationType.TASK) {