Bug 186211 - [Viewers] SWT/JFace: TreeViewer unable to show same image in different columns
Summary: [Viewers] SWT/JFace: TreeViewer unable to show same image in different columns
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: 3.3 RC1   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords: greatbug
: 187192 195223 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-09 13:22 EDT by Nicolas Cabanis CLA
Modified: 2007-07-05 18:13 EDT (History)
3 users (show)

See Also:


Attachments
Screenshot showing problem (13.75 KB, image/png)
2007-05-09 13:23 EDT, Nicolas Cabanis CLA
no flags Details
Snippet demonstrating the problem (4.67 KB, text/x-java)
2007-05-09 13:24 EDT, Nicolas Cabanis CLA
no flags Details
patch (845 bytes, patch)
2007-05-10 13:55 EDT, Boris Bokowski CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Cabanis CLA 2007-05-09 13:22:25 EDT
Build ID: I20070503-1400

Steps To Reproduce:
1. see atached snippet
2.
3.


More information:
If the same image is returned by the label provider, the tree viewer shows the image only in the first column. A table viewer shows the image in all columns.
If separate images are used for the first and for all following columns, it works.
Comment 1 Nicolas Cabanis CLA 2007-05-09 13:23:30 EDT
Created attachment 66517 [details]
Screenshot showing problem
Comment 2 Nicolas Cabanis CLA 2007-05-09 13:24:25 EDT
Created attachment 66518 [details]
Snippet demonstrating the problem
Comment 3 Thomas Schindl CLA 2007-05-09 13:31:32 EDT
Which build are you running this? For me this works as expected but I'm on MacOSX maybe this is an SWT-Issue on WinXP?
Comment 4 Thomas Schindl CLA 2007-05-09 13:32:58 EDT
sorry. Did see the build-id :-)
Comment 5 Thomas Schindl CLA 2007-05-09 13:40:15 EDT
Could you by chance add an SWT-Only Tree to the ones you are shown so we can isolate the problem better. An additional snippet would be prefect because this makes it easier for the SWT-Team to track down the bug if it's theirs.
Comment 6 Nicolas Cabanis CLA 2007-05-10 04:36:14 EDT
Sorry, I don't exactly know how to implement this without JFace. I would appreciate, you trying out this for yourself.

Comment 7 Boris Bokowski CLA 2007-05-10 13:55:27 EDT
Created attachment 66727 [details]
patch

Tom, could you please review the patch for inclusion in RC1 and respond with a +1 if you like it?
Comment 8 Boris Bokowski CLA 2007-05-10 13:56:01 EDT
Nicolas, thanks for the excellent bug report.  Good catch!
Comment 9 Thomas Schindl CLA 2007-05-10 16:37:22 EDT
+1
Comment 10 Boris Bokowski CLA 2007-05-11 11:05:42 EDT
Released >20070511.
Comment 11 Boris Bokowski CLA 2007-05-15 13:38:03 EDT
Verified by running the snippet using I20070515-0010 on Windows XP.
Comment 12 Boris Bokowski CLA 2007-05-16 16:06:44 EDT
*** Bug 187192 has been marked as a duplicate of this bug. ***
Comment 13 Thomas Schindl CLA 2007-07-05 18:13:23 EDT
*** Bug 195223 has been marked as a duplicate of this bug. ***