Java 类org.eclipse.ui.texteditor.DefaultRangeIndicator 实例源码

项目:pgcodekeeper    文件:SqlSourceViewer.java   
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());
}
项目:birt    文件:XMLEditor.java   
public XMLEditor( )
    {
        super( );
        colorManager = new ColorManager( );
        setSourceViewerConfiguration( new XMLConfiguration( colorManager ) );

        setRangeIndicator(new DefaultRangeIndicator());
//      initializeEditor();
    }