Bug 166029 Help context displays only the first time in data set query editor[0703]
Help context displays only the first time in data set query editor Build number: 2.2.0.v20061128-0824 Steps to reproduce: 1.new a report 2.new a JDBC data source: Driver:jdbc:oracle:thin:@spmdb:1521:test Database URL:jdbc:oracle:thin:@spmdb:1521:test user:root,password:root 3.new a set using above data source,in data set query input "select * from" 4.then input "CORDER.",then help context list displays 5.then delete the query and reinput "select * from CORDER." Expected result: help context list will be displayed whenever you input Actual result: Help context list was displayed in the first time and after that nothing is displayed. Error log: N/A
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
GridLayout layout = new GridLayout( );
		layout.numColumns = 1;
		composite.setLayout( layout );
		CompositeRuler ruler = new CompositeRuler( );
		LineNumberRulerColumn lineNumbers = new LineNumberRulerColumn( );
		ruler.addDecorator( 0, lineNumbers );
		viewer = new SourceViewer( composite, ruler, SWT.H_SCROLL
				| SWT.V_SCROLL );
		sourceViewerConfiguration = new JdbcSQLSourceViewerConfiguration( this.getDataSetDesign( ) );
		viewer.configure( sourceViewerConfiguration );
		doc = new Document( getQueryText( ) );
		FastPartitioner partitioner = new FastPartitioner( new SQLPartitionScanner( ),
				new String[]{
						SQLPartitionScanner.SINGLE_LINE_COMMENT1,
						SQLPartitionScanner.SINGLE_LINE_COMMENT2,
						SQLPartitionScanner.MULTI_LINE_COMMENT,
						IDocument.DEFAULT_CONTENT_TYPE
				} );
		partitioner.connect( doc );
		doc.setDocumentPartitioner( partitioner );
		viewer.setDocument( doc );
		viewer.getTextWidget( ).setFont( JFaceResources.getTextFont( ) );
		viewer.getTextWidget( )
				.addBidiSegmentListener( new BidiSegmentListener( ) {
					/*
					 * @see org.eclipse.swt.custom.BidiSegmentListener#lineGetSegments(org.eclipse.swt.custom.BidiSegmentEvent)
					 */
					public void lineGetSegments( BidiSegmentEvent event )
					{
						event.segments = SQLUtility.getBidiLineSegments( event.lineText );