fSourceViewer= new JavaSourceViewer(c, null, null, false, styles); fSourceViewer.configure(new JavaSourceViewerConfiguration(tools, null));
IPreferenceStore store= JavaPlugin.getDefault().getCombinedPreferenceStore(); fSourceViewer= new JavaSourceViewer(c, null, null, false, styles, store); fSourceViewer.configure(new JavaSourceViewerConfiguration(tools.getColorManager(), store, null, null));
	private void createSourceViewer(Composite parent){		Composite c= new Composite(parent, SWT.NONE);		c.setLayoutData(new GridData(GridData.FILL_BOTH));		GridLayout gl= new GridLayout();		gl.marginHeight= 0;		gl.marginWidth= 0;        c.setLayout(gl);				Label l= new Label(c, SWT.NONE);		l.setText(NLSUIMessages.getString("wizardPage.context")); //$NON-NLS-1$		l.setLayoutData(new GridData());				// source viewer		JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools();				int styles= SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION;		fSourceViewer= new JavaSourceViewer(c, null, null, false, styles);		fSourceViewer.configure(new JavaSourceViewerConfiguration(tools, null));		fSourceViewer.getControl().setFont(JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT));		try {						String contents= fCu.getBuffer().getContents();			IDocument document= new Document(contents);			tools.setupJavaDocumentPartitioner(document);						fSourceViewer.setDocument(document);			fSourceViewer.setEditable(false);						GridData gd= new GridData(GridData.FILL_BOTH);			gd.heightHint= convertHeightInCharsToPixels(10);			gd.widthHint= convertWidthInCharsToPixels(40);			fSourceViewer.getControl().setLayoutData(gd);					} catch (JavaModelException e) {			ExceptionHandler.handle(e, NLSUIMessages.getString("wizardPage.title"), NLSUIMessages.getString("wizardPage.exception")); //$NON-NLS-2$ //$NON-NLS-1$		}	}