Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-ui-dev] how to configure SourceViewer?

i have the following code:

JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools(); 

int styles= SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION;

fSourceViewer= new SourceViewer(composite, null, styles);

fSourceViewer.configure(new JavaSourceViewerConfiguration(tools, null));



this seems to be not enough to make the viewer use the same settings (font, colors ...) as the java editor

what else do i have to set?

a.




Back to the top