Bug 153387 Database item can't be dragged and dropped onto editor field
Steps to reproduce: 1.Start up BIRT in Mac OS X; 2.File->New->Project; 3.File->New->Report Design; 4.In Data Explorer, create a New Data Source, and choose "Classic Models Inc. Sample DataBase", press "Next" and then press "finish"; 5.In Data Explorer, create a New Data Set, press "Next"; 6.In the popup window, expand the "CLASSICMODELS", select and drag a item onto the editor field at right side.
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
}
	
	/**
	 * remove the tree item's direct child treeItem, cause since 3.1,
	 * TreeItem.removeAll is supported.But in 3.0,this method is not supported.
	 * 
	 * @param treeItem
	 */
	private void removeTreeItem( TreeItem treeItem )
	{
		if ( treeItem.isDisposed( ) )
			return;
		TreeItem[] items = treeItem.getItems( );
		for ( int i = 0; i < items.length; i++ )
		{
			if ( items[i] != null && !items[i].isDisposed( ) )
			{
				items[i].dispose( );
			}
		}
	}
}
class DbType
{
	public static final int TABLE_TYPE = 0;
	public static final String TABLE_STRING = "TABLE";
	public static final int VIEW_TYPE = 1;
	public static final String VIEW_STRING = "VIEW";
	public static final int ALL_TYPE = 2;
	public static final String ALL_STRING = "ALL";