String p= event.getProperty(); if (p.equals(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND) || p.equals(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT)) { initializeViewerColors(fPreviewViewer); }
	private Control createPreviewer(Composite parent) {				fJavaTextTools= new JavaTextTools(fOverlayStore);				fPreviewViewer= new SourceViewer(parent, null, SWT.V_SCROLL | SWT.H_SCROLL);		fPreviewViewer.configure(new JavaSourceViewerConfiguration(fJavaTextTools, null));		fPreviewViewer.getTextWidget().setFont(JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT));		fPreviewViewer.setEditable(false);				String content= loadPreviewContentFromFile("ColorSettingPreviewCode.txt");		IDocument document= new Document(content);		IDocumentPartitioner partitioner= fJavaTextTools.createDocumentPartitioner();		partitioner.connect(document);		document.setDocumentPartitioner(partitioner);				fPreviewViewer.setDocument(document);				fOverlayStore.addPropertyChangeListener(new IPropertyChangeListener() {			public void propertyChange(PropertyChangeEvent event) {				fPreviewViewer.invalidateTextPresentation();			}		});				return fPreviewViewer.getControl();	}