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.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/preferences/DateSetPreferencePage.java
implements IWorkbenchPreferencePage
{
	private IntegerFieldEditor maxRowEditor;
	private IntegerFieldEditor maxDisplaySchemaEditor;
	
	
	public static final int DEFAULT_MAX_ROW = 500;
	
	
	public static final int DEFAULT_MAX_NUM_OF_SCHEMA = 20;
	
	private static final int MAX_MAX_ROW = Integer.MAX_VALUE;
	
	
	public static final String USER_MAXROW = "user_maxrow"; 
	public static final String USER_MAX_NUM_OF_SCHEMA = "user_max_num_of_schema";
	/*
	 * @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
	 */
	protected Control createContents( Composite parent )
	{
		Composite mainComposite = new Composite( parent, SWT.NONE );
		GridData data = new GridData( GridData.CENTER);
		data.horizontalSpan = 1;
		data.verticalSpan = 20;
		mainComposite.setLayoutData( data );
		GridLayout layout = new GridLayout(  );
		mainComposite.setLayout( layout );
		
		maxDisplaySchemaEditor = new IntegerFieldEditor( USER_MAX_NUM_OF_SCHEMA, "", mainComposite );