public SqlSourceViewer(Composite parent, int style) { super(parent, new CompositeRuler(), SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.BORDER | style); this.setRangeIndicator(new DefaultRangeIndicator()); this.configure(new SQLEditorSourceViewerConfiguration(EditorsUI .getSharedTextColors(), Activator.getDefault() .getPreferenceStore(), null)); this.getTextWidget().setFont(JFaceResources.getTextFont()); }
public XMLEditor( ) { super( ); colorManager = new ColorManager( ); setSourceViewerConfiguration( new XMLConfiguration( colorManager ) ); setRangeIndicator(new DefaultRangeIndicator()); // initializeEditor(); }