JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools(); JavaSourceViewerConfiguration configuration= new JavaSourceViewerConfiguration(tools.getColorManager(), store, null, IJavaPartitions.JAVA_PARTITIONING);
JavaSourceViewerConfiguration configuration= new JavaSourceViewerConfiguration(fColorManager, store, null, IJavaPartitions.JAVA_PARTITIONING);
	private Control createPreviewer(Composite parent) {				IPreferenceStore generalTextStore= EditorsUI.getPreferenceStore();		IPreferenceStore store= new ChainedPreferenceStore(new IPreferenceStore[] { fOverlayStore, new PreferencesAdapter(createTemporaryCorePreferenceStore()), generalTextStore });		fPreviewViewer= new JavaSourceViewer(parent, null, null, false, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER, store);		JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools();		JavaSourceViewerConfiguration configuration= new JavaSourceViewerConfiguration(tools.getColorManager(), store, null, IJavaPartitions.JAVA_PARTITIONING);		fPreviewViewer.configure(configuration);		Font font= JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT);		fPreviewViewer.getTextWidget().setFont(font);		new JavaSourcePreviewerUpdater(fPreviewViewer, configuration, store);		fPreviewViewer.setEditable(false);				String content= loadPreviewContentFromFile("ColorSettingPreviewCode.txt"); //$NON-NLS-1$		IDocument document= new Document(content);		tools.setupJavaDocumentPartitioner(document, IJavaPartitions.JAVA_PARTITIONING);		fPreviewViewer.setDocument(document);		installSemanticHighlighting();				return fPreviewViewer.getControl();	}