Bug 145216 Drag and drop multiple columns in Edit Data Set dialog does not work
It is possible to select multiple columns in Edit Data Set dialog, but dragging and dropping them into the query text inserts only one of the selected columns. Expected: Either only on column is selectable or all selected columns are inserted (with comma as separator). Tested with BIRT2.1RC4.
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
/**
	 * return the query text. If the query text is empty then return the pre-defined pattern
	 * 
	 * @return
	 */
	private String getQueryText( )
	{
		String queryText = this.getDataSetDesign( ).getQueryText( );
		if ( queryText != null && queryText.trim( ).length( ) > 0 )
			return queryText;
		return getQueryPresetTextString( );
	}
	
	/**
	 * Return pre-defined query text pattern with every element in a cell.
	 * 
	 * @return pre-defined query text
	 */
	private String getQueryPresetTextString( )
	{
		String[] lines = getQueryPresetTextArray( );
		String result = "";
		if ( lines != null && lines.length > 0 )
		{
			for ( int i = 0; i < lines.length; i++ )
			{
				result = result
						+ lines[i] + ( i == lines.length - 1 ? " " : " \n" );
			}
		}