Bug 161191 Null is inserted when drag columns to query text with ctrl key pressed
Description: Null is inserted when drag columns to query text with ctrl key pressed Steps to reproduce: 1. New a data source. 2. New a dataset. 3. Press and hold ctrl key, select OFFICECODE and CITY columns, drag to query text. Expected result: "CLASSICMODELS.OFFICES.OFFICECODE,CLASSICMODELS.OFFICES.CITY" is inserted in query text. Actual result: "null,CLASSICMODELS.OFFICES.OFFICECODE,CLASSICMODELS.OFFICES.CITY" is inserted
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
}
	
	/*
	 * @see org.eclipse.jface.dialogs.DialogPage#setVisible(boolean)
	 */
	public void setVisible( boolean visible )
	{
		super.setVisible( visible );
		getControl( ).setFocus( );
	}
    
	/**
	 * 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( );
		String extensionId = this.getDataSetDesign( )
				.getOdaExtensionDataSetId( );
		this.formerQueryTxt = queryText;
		if ( queryText != null
				&& queryText.equalsIgnoreCase( SQLUtility.getQueryPresetTextString( extensionId ) ) )
		{
			String[] lines = SQLUtility.getQueryPresetTextArray( extensionId );
			if ( lines != null && lines.length > 0 )
				styledText.setSelection( lines[0].length( ) + 1,
						lines[0].length( ) + 1 );