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
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.PlatformUI;
/**
 * TODO: Please document
 * 
 * @version $Revision: 1.35 $ $Date: 2006/01/16 09:29:20 $
 */
public class SQLDataSetEditorPage extends AbstractPropertyPage implements SelectionListener
{
	private transient Document doc = null;
	private SourceViewer viewer = null;
	private Hashtable htActions = new Hashtable( );
    private transient IExternalEditorPreference preference = null;
    private TreeItem rootNode = null;