Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343999

Summary: ListResult columns are not translated
Product: [Tools] MAT Reporter: Andrew Johnson <andrew_johnson>
Component: CoreAssignee: Andrew Johnson <andrew_johnson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 269608    

Description Andrew Johnson CLA 2011-04-27 13:18:42 EDT
For the Leak Suspects report, the column headings for Accumulated Objects by Class are not translated

tools.mat562107:Accumulated Objects by Class
Label Number Of Objects Used Heap Size Retained Heap Size 

ListResult.fixName() converts the attributes to readable names which is not translated.

Also
tools.mat562223:Biggest Top-Level Dominator Classes
Label Number Of Objects Used Heap Size Retained Heap Size tools.mat562231:Retained Heap, % 

 tools.mat562225:Biggest Top-Level Dominator Class Loaders
Label Number Of Objects Used Heap Size Retained Heap Size tools.mat562231:Retained Heap, %
Comment 1 Andrew Johnson CLA 2011-05-27 09:21:13 EDT
One solution would be do use PropertyDescriptor.getDisplayName if available and different from getName for both ListResult and PropertyResult, and to define a BeanInfo to supply this information when using a ListResult.
Comment 2 Andrew Johnson CLA 2011-06-29 08:49:30 EDT
Solution is to add BeanInfo for HistogramRecord and TextEntry, modify ListResult and PropertyResult.
Comment 3 Andrew Johnson CLA 2011-06-29 10:32:33 EDT
Fix applied - we need a Babel pseudo-translation file to test.
Comment 4 Andrew Johnson CLA 2011-06-29 10:32:55 EDT
Fixed.