| Summary: | [Viewers] 'refresh()' of TreeViewer doesn't remove the image displayed for the previous column | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Janice Li <jli1> | ||||||||
| Component: | UI | Assignee: | Boris Bokowski <bokowski> | ||||||||
| Status: | RESOLVED DUPLICATE | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | tom.schindl | ||||||||
| Version: | 3.3 | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Janice Li
Created attachment 72928 [details]
Show recommended nodes
1st attachment.
Created attachment 72929 [details]
Show all nodes
2nd attachment.
Could you by change provide a simple code snippet to reproduce this behaviour? I'm also uncertain which class you are using: - TreeViewer as stated in the Summary - TableTreeViewer as stated in your description We had somewhere in dev-cycle 3.3 a problem with cached images. As a starting point you can use one of snippets provide from http://wiki.eclipse.org/JFaceSnippets I use CheckboxTreeViewer and create columns for this CheckboxTreeViewer. MyLabelProvider extends LabelProvider and implements ITableLabelProvider and return the image or null for the 'Recommended' column. Created attachment 73152 [details]
Test snippet
This is a test snippet and it works for me as expected but I could only try against 3.3RC1. Can you run the snippet as report back?
Tried it on Eclipse3.3M7 and I can see the problem. The scenario is: 1. Run the program and expand all the nodes in the Tree. Notice that there is no image for 'Column 0 => Item 0.4.1'. 2. Push the button 3. Push the button again. There is an image for 'Column 0 => Item 0.4.1' now. You are seeing #186211 we fixed in 3.3RC1. I'll close this as a DUP. Please reopen if you can reproduce in final 3.3. *** This bug has been marked as a duplicate of bug 186211 *** |