Bug 13507 LinkedPositionUI has a reference to SWT.COLOR_RED
LinkedPositionUI(ITextViewer, LinkedPositionManager) - org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI has a reference to SWT.COLOR_RED which will be unreadble if the user sets their background colour to Red. We will be adding a getErrorText colour to JFaceColours in build >20020411. You may want to use that.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
/**
	 * Sets the given message as error message to this editor's status line.
	 * @param msg message to be set
	 */
	protected void setStatusLineErrorMessage(String msg) {
		
		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());