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

Bug 320354

Summary: "Leaking" image properties in ColumnFormatters
Product: [RT] Riena Reporter: Stephan Mann <stephan.mann>
Component: UIAssignee: Project Inbox <riena.core-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: christian.campo, elias
Version: unspecified   
Target Milestone: 3.0.0.M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 43910    
Bug Blocks:    
Attachments:
Description Flags
An empty space in the first column exactly as wide as the image set by the ColumnFormatter in the second column
none
Properties leaking from the first column to another ColumnFormatter
none
Properties leaking to an image from the ImageStore
none
View and Controller code to reproduce
none
SWT only snippet to reproduce this bug none

Description Stephan Mann CLA 2010-07-20 04:36:25 EDT
For some reason, a ColumnFormatter that returns an image in any other than the first column results in an empty space in the first column, exactly as wide as the image in the other column. Additionally, if a ColumnFormatter is set to the first column, the properties of that image seem to "leak" to any other ColumnFormatter that is used in this table.

I've attached screenshots and a snippet to reproduce this behavior. Let me know if you need anything else.
Comment 1 Stephan Mann CLA 2010-07-20 04:37:29 EDT
Created attachment 174709 [details]
An empty space in the first column exactly as wide as the image set by the ColumnFormatter in the second column
Comment 2 Stephan Mann CLA 2010-07-20 04:38:46 EDT
Created attachment 174710 [details]
Properties leaking from the first column to another ColumnFormatter
Comment 3 Stephan Mann CLA 2010-07-20 04:39:25 EDT
Created attachment 174711 [details]
Properties leaking to an image from the ImageStore
Comment 4 Stephan Mann CLA 2010-07-20 04:39:47 EDT
Created attachment 174712 [details]
View and Controller code to reproduce
Comment 5 Elias Volanakis CLA 2010-07-26 17:23:03 EDT
Thanks, I will investigate this approx. next week.

> a ColumnFormatter that returns an image in any other than the first column results in an empty space in the first column

By the way -- if my memory does not fail me: 1st issue should be a known SWT bug.
Comment 6 Elias Volanakis CLA 2010-07-26 17:25:08 EDT
Potentially, it could turn out that the images MUST have the same size or even only 16x16 -- I'll investigate what SWT supports.
Comment 7 Elias Volanakis CLA 2010-07-26 17:25:55 EDT
You can also try it yourselft by using Table and TableItem only (no ridget / viewer / labelprovider).
Comment 8 Stephan Mann CLA 2010-08-17 03:51:54 EDT
As expected, you're right. This is a known Windows "bug". There is a workaround for Windows but this would require to write OS specific code. So I guess we have to live with it.

*** This bug has been marked as a duplicate of bug 43910 ***
Comment 9 Stephan Mann CLA 2010-08-17 07:35:38 EDT
Since Christian marked this bug as blocked by bug43910 I'm attaching my SWT only snippet to reproduce this behavior. This bug was observed under Windows 7 using SWT 3.6.0 and JDK 1.6.0 update 20.
Comment 10 Stephan Mann CLA 2010-08-17 07:36:24 EDT
Created attachment 176776 [details]
SWT only snippet to reproduce this bug