color= fPreferenceStore.getBoolean(ExtendedTextEditorPreferenceConstants.EDITOR_SELECTION_FOREGROUND_DEFAULT_COLOR) ? null : createColor(fPreferenceStore, ExtendedTextEditorPreferenceConstants.EDITOR_SELECTION_FOREGROUND_COLOR, styledText.getDisplay()); styledText.setSelectionForeground(color);  if (fSelectionForegroundColor != null) fSelectionForegroundColor.dispose();  fSelectionForegroundColor= color;   color= fPreferenceStore.getBoolean(ExtendedTextEditorPreferenceConstants.EDITOR_SELECTION_BACKGROUND_DEFAULT_COLOR) ? null : createColor(fPreferenceStore, ExtendedTextEditorPreferenceConstants.EDITOR_SELECTION_BACKGROUND_COLOR, styledText.getDisplay()); styledText.setSelectionBackground(color);  if (fSelectionBackgroundColor != null) fSelectionBackgroundColor.dispose();  fSelectionBackgroundColor= color;
	protected void initializeViewerColors() {		if (fPreferenceStore != null) {						StyledText styledText= getTextWidget();						// ----------- foreground color --------------------			Color color= fPreferenceStore.getBoolean(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR)			? null			: createColor(fPreferenceStore, PreferenceConstants.EDITOR_FOREGROUND_COLOR, styledText.getDisplay());			styledText.setForeground(color);						if (fForegroundColor != null)				fForegroundColor.dispose();						fForegroundColor= color;						// ---------- background color ----------------------			color= fPreferenceStore.getBoolean(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR)			? null			: createColor(fPreferenceStore, PreferenceConstants.EDITOR_BACKGROUND_COLOR, styledText.getDisplay());			styledText.setBackground(color);						if (fBackgroundColor != null)				fBackgroundColor.dispose();						fBackgroundColor= color;		}    }