fSourceViewer.configure(new JavaSourceViewerConfiguration(textTools, null));
IPreferenceStore store= JavaPlugin.getDefault().getCombinedPreferenceStore(); fSourceViewer.configure(new JavaSourceViewerConfiguration(textTools.getColorManager(), store, null, null));
	public void setInput(ChangePreviewViewerInput input) {		try {			Change change= input.getChange();			if (!(change instanceof CreateTextFileChange)) {				fSourceViewer.setInput(null);				fPane.setText(""); //$NON-NLS-1$				return;			}			CreateTextFileChange textFileChange= (CreateTextFileChange)change;			fPane.setText(textFileChange.getName());			IDocument document= new Document(textFileChange.getPreview());			// This is a temporary work around until we get the			// source viewer registry.			if ("java".equals(textFileChange.getTextType())) { //$NON-NLS-1$				JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools();				textTools.setupJavaDocumentPartitioner(document);				fSourceViewer.configure(new JavaSourceViewerConfiguration(textTools, null));			} else {				fSourceViewer.configure(new SourceViewerConfiguration());			}			fSourceViewer.setInput(document);		} catch (JavaModelException e) {			Document doc= new Document(e.getMessage());			fSourceViewer.setInput(doc);		}	}