Bug 123915 Add table-fetch limitation when DataSet Editor is populating table names.
When fetch table names from database of large volume of data, there lies a possibility that the editor window will be frozen because of the population of huge number of table names. This should be enhanced. A handy solution might be limiting the number of table names being fetched each schema.
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
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();
	}
	
	/**
	 * return the query text. If the query text is empty then return the pre-defined pattern
	 * 
	 * @return
	 */
	private String getQueryText( )
	{
		String queryText = ( (OdaDataSetHandle) getContainer( ).getModel( ) ).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