Bug 134988 [regression]Available items in Query didn't change when change data source in Edit Data Set Dialog.
Description: Available items in Query didn't change when change data source in Edit Data Set Dialog. Steps to reproduce: 1. New two different data sources. 2. New a dataset, change data source, view Available Items in Query pane. Expected result: Available Items in Query pane changed according to new Data source. Actual result: Available Items in Query pane kept unchanged.
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
* @see org.eclipse.datatools.connectivity.oda.design.internal.ui.DataSetWizardPageCore#refresh(org.eclipse.datatools.connectivity.oda.design.DataSetDesign)
     */
    protected void refresh( DataSetDesign dataSetDesign )
	{
		DEFAULT_MESSAGE = JdbcPlugin.getResourceString( "dataset.editor.page.query" );
		setMessage( DEFAULT_MESSAGE );
		refreshPage( );
		prepareUI( );
	}
	
	/**
	 * Prepare UI when pageActivated event is invoked Following things will be
	 * done: Set StyledText content Set StyledText as focus
	 * 
	 */
	private void prepareUI()
	{	
		StyledText styledText = viewer.getTextWidget();
		String queryText = styledText.getText( );
		if ( queryText != null
				&& queryText.equalsIgnoreCase( getQueryPresetTextString( ) ) )
		{
			String[] lines = getQueryPresetTextArray( );
			if ( lines != null && lines.length > 0 )
				styledText.setSelection( lines[0].length( ) + 1,
						lines[0].length( ) + 1 );
		}
		styledText.setFocus();
	}