Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320354 - "Leaking" image properties in ColumnFormatters
Summary: "Leaking" image properties in ColumnFormatters
Status: RESOLVED WONTFIX
Alias: None
Product: Riena
Classification: RT
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.0.0.M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 43910
Blocks:
  Show dependency tree
 
Reported: 2010-07-20 04:36 EDT by Stephan Mann CLA
Modified: 2010-10-29 06:21 EDT (History)
2 users (show)

See Also:


Attachments
An empty space in the first column exactly as wide as the image set by the ColumnFormatter in the second column (8.05 KB, image/png)
2010-07-20 04:37 EDT, Stephan Mann CLA
no flags Details
Properties leaking from the first column to another ColumnFormatter (13.17 KB, image/png)
2010-07-20 04:38 EDT, Stephan Mann CLA
no flags Details
Properties leaking to an image from the ImageStore (13.30 KB, image/png)
2010-07-20 04:39 EDT, Stephan Mann CLA
no flags Details
View and Controller code to reproduce (2.32 KB, text/plain)
2010-07-20 04:39 EDT, Stephan Mann CLA
no flags Details
SWT only snippet to reproduce this bug (1.80 KB, text/plain)
2010-08-17 07:36 EDT, Stephan Mann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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