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
checkJarState( );
			refreshJarViewer( );
			updateJarButtons( );
		}
	}
	/**
	 * actions after delete button is click in jarPage
	 */
	private void deleteJar( )
	{
		jarChanged=true;
		if ( jarViewer.getTable( ).getSelectionIndex( ) >= 0
				&& jarViewer.getTable( ).getSelectionIndex( ) < jarViewer.getTable( )
						.getItemCount( ) )
		{
			int idx = jarViewer.getTable( ).getSelectionIndex( );
			Map.Entry fn = (Map.Entry) jarViewer.getTable( ).getSelection( )[0].getData( );
			JarFile jarFile = (JarFile) fn.getValue( );
			jarFile.setToBeDeleted( true );
			if ( jarsToBeCopied.containsKey( jarFile.getFileName() ) )
			{
				jarsToBeCopied.remove( jarFile );
			}
			
			jarsToBeDeleted.put( jarFile.getFileName( ),
					jarFile );
			
			jarMap.remove( fn.getKey( ) );
			jarViewer.getTable( ).remove( idx );