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

Bug 309346

Summary: [TreeViewer] Child nodes in virtual tree don't show labels upon parent node expansion
Product: [RT] RAP Reporter: Austin Riddle <austin.riddle>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Sample project illustrating problem
none
Proposed patch none

Description Austin Riddle CLA 2010-04-15 12:34:13 EDT
Created attachment 164991 [details]
Sample project illustrating problem

Version: CVS HEAD
Steps to reproduce:

1) Create a tree viewer with parent and child nodes.
2) Use the SWT.VIRTUAL style bit.
3) Run the app and expand a node.

Observe that the initial expansion does not render labels on child nodes.

Optionally use the attached sample project to illustrate problem.
VirtualView.java is the view to look at.
Comment 1 Austin Riddle CLA 2010-04-15 12:36:49 EDT
(In reply to comment #0)

Additional note:
I tried to reproduce this in the RAP controls demo, but was unsuccessful I suppose because this is somehow related to TreeViewer and the controls demo uses a Tree directly.
Comment 2 Ivan Furnadjiev CLA 2010-04-20 10:35:24 EDT
Created attachment 165442 [details]
Proposed patch

Set cached to true was commented in TreeItem#setText(). Benny, any reason to not enable the code?
Comment 3 Ivan Furnadjiev CLA 2010-04-20 13:02:27 EDT
Applied patch to CVS HEAD.