viewer.configure(new JavaSourceViewerConfiguration(tools, null));
viewer.configure(new JavaSourceViewerConfiguration(tools, editor));
	private static SourceViewer createEditor(Composite parent) {		SourceViewer viewer= new SourceViewer(parent, null, SWT.SINGLE);		JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools();		viewer.configure(new JavaSourceViewerConfiguration(tools, null));		viewer.setEditable(true);		viewer.setDocument(new Document());		Font font= JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT);		viewer.getTextWidget().setFont(font);				return viewer;	}