Bug 142624 TVT3.2:TCT559: tw : Buttons are truncated on Manage JDBC Drivers panel
OS : RHEL 3.1 Must fix or not a must fix: YES Build date: 0516 Component name = BIRT Blocking: NO Language: tw Bitmap Location: V:\defects\cht Tester Name: Ivory Chang Problem Description: The bottom parts of characters for "Add", "Restore" & "delete" buttons are truncated. They can NOT be resized. Step: Select Window->Show View->Data Explorer menu Right click Data Source and select New Data Source context menu. Click Next Click Back Select JDBC Data Source Click Next Click Manage Drivers button This article was reassigned from Category:''TVT/Testing''.
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/dialogs/JdbcDriverManagerDialog.java
private void sortDriver( final int columnIndex, final boolean asc )
	{
		driverViewer.setComparator( new ViewerComparator( new Comparator( ) {
			/*
			 * @see java.util.Comparator#compare(java.lang.Object,
			 *      java.lang.Object)
			 */
			public int compare( Object o1, Object o2 )
			{
				String source = (String) o1;
				String target = (String) o2;
				int result = 0;
				if ( columnIndex == 1 )
					result = this.compareStr( getDriverClassName( source ),
							getDriverClassName( target ) );
				else if ( columnIndex == 2 )
					result = this.compareStr( getDisplayName( source ),
							getDisplayName( target ) );
				else if ( columnIndex == 3 )
					result = this.compareStr( getUrlTemplate( source ),
							getUrlTemplate( target ) );
				if ( !asc )
					return result;
				else
					return result *= -1;
			}
			/**
			 * @param o1
			 * @param o2
			 * @return