Bug 15527 JavaCore constants should be used is favor of hard-coded strings
the following classes should use constants defined in JavaCode rather than hard-coded strings StubUtility CodeFormatterUtil CompilationUnitEditor JavaCodeScanner JavaCompiletionProcessor
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
getStatusLineManager().setErrorMessage(msg);
		
		if (msg == null || msg.trim().length() == 0) {
			if (fStatusLineClearer != null) {
				getSelectionProvider().removeSelectionChangedListener(fStatusLineClearer);
				fStatusLineClearer= null;
			}
		} else if (fStatusLineClearer == null) {
			fStatusLineClearer= new ISelectionChangedListener() {
				public void selectionChanged(SelectionChangedEvent event) {
					getSelectionProvider().removeSelectionChangedListener(fStatusLineClearer);
					fStatusLineClearer= null;
					getStatusLineManager().setErrorMessage(null);
				}
			};
			getSelectionProvider().addSelectionChangedListener(fStatusLineClearer);
		}
	}
	
	private IMarker getNextError(int offset, boolean forward) {
		
		IMarker nextError= null;
		
		IDocument document= getDocumentProvider().getDocument(getEditorInput());
		int endOfDocument= document.getLength(); 
		int distance= 0;
		
		IAnnotationModel model= getDocumentProvider().getAnnotationModel(getEditorInput());
		Iterator e= model.getAnnotationIterator();
		while (e.hasNext()) {