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

Bug 288634

Summary: [Table] TableItem images are not displayed if columns are created after setInput
Product: [RT] RAP Reporter: Stefan Röck <stefan.roeck>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: 1.3 M2   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Snippet to reproduce none

Description Stefan Röck CLA 2009-09-04 09:06:26 EDT
Depending on the creation time of TableColumns, images are not displayed (provided by a LabelProvider, for instance) under some circumstances.
It seems as if the TableColumns are created after calling setInput on the Table, the array Table#columnImageCount isn't updated correctly.
Comment 1 Stefan Röck CLA 2009-09-04 09:07:12 EDT
Created attachment 146496 [details]
Snippet to reproduce
Comment 2 Ivan Furnadjiev CLA 2009-09-07 07:32:55 EDT
The problem was in Table#createColumn(). If Table#columnImageCount is not null (TableItem.setImage() is called before) for the first added column, there is no need to extend the Table#columnImageCount array.