[eclipseoprofile-cvs] org.eclipse.cdt.oprofile/org.eclipse.cdt.oprofile.ui/src/org/eclipse/cdt/oprof
Brought to you by:
jhandcock
From: Jeremy H. <jha...@us...> - 2006-05-02 01:37:35
|
Update of /cvsroot/eclipseoprofile/org.eclipse.cdt.oprofile/org.eclipse.cdt.oprofile.ui/src/org/eclipse/cdt/oprofile/ui/sample In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27568a/org.eclipse.cdt.oprofile.ui/src/org/eclipse/cdt/oprofile/ui/sample Modified Files: ChangeLog SampleSorter.java Log Message: Adding patch from Keith Seitz from Eclipse.org repository Index: SampleSorter.java =================================================================== RCS file: /cvsroot/eclipseoprofile/org.eclipse.cdt.oprofile/org.eclipse.cdt.oprofile.ui/src/org/eclipse/cdt/oprofile/ui/sample/SampleSorter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SampleSorter.java 13 Oct 2004 06:14:55 -0000 1.1 --- SampleSorter.java 2 May 2006 01:37:25 -0000 1.2 *************** *** 53,57 **** case SampleView.COLUMN_VMA: ! result = collator.compare(o1.getAddress(), o2.getAddress()); break; --- 53,61 ---- case SampleView.COLUMN_VMA: ! // Some elements don't have addresses (or at least we don't know them) ! // In these cases, getAddress will return null. Just pretend they're 0x00. ! String addr1 = (o1.getAddress() == null) ? "0" : o1.getAddress(); ! String addr2 = (o2.getAddress() == null) ? "0" : o2.getAddress(); ! result = collator.compare(addr1, addr2); break; Index: ChangeLog =================================================================== RCS file: /cvsroot/eclipseoprofile/org.eclipse.cdt.oprofile/org.eclipse.cdt.oprofile.ui/src/org/eclipse/cdt/oprofile/ui/sample/ChangeLog,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ChangeLog 13 Oct 2004 07:24:35 -0000 1.2 --- ChangeLog 2 May 2006 01:37:25 -0000 1.3 *************** *** 1,2 **** --- 1,8 ---- + 2006-04-28 Keith Seitz <ke...@re...> + + * SampleSorter.java (compare): Addresses can sometimes be null in the + VMA column. If they are, use "0" instead to force them to the top of + the list. + 2004-08-27 Keith Seitz <ke...@re...> |