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/preferences/JavaEditorPreferencePage.java
label= JavaUIMessages.getString("JavaEditorPreferencePage.highlightProblems"); 
		fProblemIndicationButton= addCheckBox(behaviorComposite, label, CompilationUnitEditor.PROBLEM_INDICATION, 0);
		
		label= JavaUIMessages.getString("JavaEditorPreferencePage.problemHighlightColor"); 
		fProblemIndicationColor= addColorButton(behaviorComposite, label, CompilationUnitEditor.PROBLEM_INDICATION_COLOR, 0);
		fProblemIndicationButton.addSelectionListener(new SelectionListener() {
			public void widgetSelected(SelectionEvent e) {
				setEnabled(fProblemIndicationColor, fProblemIndicationButton.getSelection());
			}
			public void widgetDefaultSelected(SelectionEvent e) {
			}
		});
		
		
		label= JavaUIMessages.getString("JavaEditorPreferencePage.showPrintMargin"); 
		fPrintMarginButton= addCheckBox(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN, 0);
		
		label= JavaUIMessages.getString("JavaEditorPreferencePage.printMarginColor"); 
		fPrintMarginColor= addColorButton(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN_COLOR, 0);
		label= JavaUIMessages.getString("JavaEditorPreferencePage.printMarginColumn"); 
		fPrintMarginColumn= addTextField(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN_COLUMN, 4, 0);
		
		fPrintMarginButton.addSelectionListener(new SelectionListener() {
			public void widgetSelected(SelectionEvent e) {
				boolean enabled= fPrintMarginButton.getSelection();
				setEnabled(fPrintMarginColor, enabled);
				setEnabled(fPrintMarginColumn, enabled);
			}