Bug 117450 Birt will hang when add several drivers through
Description: Add several drivers in the "Edit Data source" dialog, click "Ok" button, BIRT will hang and nothing can do except close BIRT forcibly. According to the developer's said, out of memory problem will occur when doing this operation. But why such operation cosumes so many memory? And the memory of my PC is 512M.
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/dialogs/JdbcDriverManagerDialog.java
new JarFile( jars[i].getName( ),
								jars[i].getAbsolutePath( ),
								"",
								false ) );
			
		}
		
		jarMap.putAll( Utility.getPreferenceStoredMap( JdbcPlugin.JAR_MAP_PREFERENCE_KEY ));
		
		checkJarState( );
	}
	
	/**
	 * Carry out sort operation against certain driver column
	 * @param columnIndex the column based on which the sort operation would be carried out 
	 * @param asc the sort direction
	 */	
	private void sortDriver( final int columnIndex, final boolean asc )
	{
		TableItem[] tableItems = driverViewer.getTable( ).getItems( );
		sort( columnIndex, asc, tableItems );
		String[][] records = mapTableItemsTo2DArray( tableItems );
		driverViewer.getTable( ).removeAll( );
		TableItem tableItem;
		for ( int i = 0; i < tableItems.length; i++ )
		{
			tableItem = new TableItem( driverViewer.getTable( ), SWT.NONE );
			tableItem.setText( records[i] );
		}
	}