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