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

Bug 352935

Summary: [Table] Buffer text width of table items
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ivan
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Rüdiger Herrmann CLA 2011-07-23 12:54:46 EDT
As a preparation for bug 346768, table items should buffer width for their respective texts.
Comment 1 Rüdiger Herrmann CLA 2011-07-23 13:41:34 EDT
The 'Data' data structure was extended to additionally hold the text width. The text width is calculated when asked for for the first time and then buffered. It is reset to 'unknown' when either text or font changes.
Changes are in CVS HEAD.
Comment 2 Ivan Furnadjiev CLA 2011-07-24 03:26:51 EDT
Rüdiger, what are the chance to buffer the "estimated" text width instead of "real" one? Maybe clear the buffer in resize listener will help in this case.
Comment 3 Rüdiger Herrmann CLA 2011-07-24 17:17:49 EDT
Ivan, thanks for double-checking! I followed your suggestion, the buffered text width is invalidated when the table is resized.