Bug 43551 Background conflicts with syntax highlighting in Edit Template of code gneration [code generation]
I have set my syntax highlighting colors. They use white foreground and black background for comments. In Preferences Java Code Generation Code & Comments If I edit an comment entry, eg Types I can not see the comments as it is using the syntax highlighting setting of white foreground but does not use the syntax highlighted background (black) but uses a default background of white. So I get white on white. It needs to either use all syntax highlight colors including background or default colors or no colors.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterConfigurationBlock.java
});
		slave.setEnabled(master.getSelection());
	}
	private SourceViewer createPreview(Composite parent) {
		
		SourceViewer previewViewer= new JavaSourceViewer(parent, null, null, false, SWT.READ_ONLY | SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER);
		previewViewer.configure(fViewerConfiguration);
		previewViewer.getTextWidget().setFont(JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT));
		previewViewer.getTextWidget().setTabs(getPositiveIntValue((String) fWorkingValues.get(PREF_TAB_SIZE), 0));
		previewViewer.setDocument(fPreviewDocument);
		
		Control control= previewViewer.getControl();
		GridData gdata= new GridData(GridData.FILL_BOTH);
		gdata.widthHint= fPixelConverter.convertWidthInCharsToPixels(30);
		gdata.heightHint= fPixelConverter.convertHeightInCharsToPixels(12);
		control.setLayoutData(gdata);
		return previewViewer;
	}
	/*
	 * @see org.eclipse.jdt.internal.ui.preferences.OptionsConfigurationBlock#validateSettings(java.lang.String, java.lang.String)
	 */
	protected void validateSettings(String changedKey, String newValue) {
		if (changedKey == null || PREF_CODE_SPLIT.equals(changedKey)) {
			String lineNumber= (String)fWorkingValues.get(PREF_CODE_SPLIT);
			fCodeLengthStatus= validatePositiveNumber(lineNumber, 4);
		}
		if (changedKey == null || PREF_COMMENT_LINELENGTH.equals(changedKey)) {
			String lineNumber= (String)fWorkingValues.get(PREF_COMMENT_LINELENGTH);
			fCommentLengthStatus= validatePositiveNumber(lineNumber, 4);
		}