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

Bug 313569

Summary: [Tree] redraw problem when modifying columns
Product: [RT] RAP Reporter: Mirko Solazzi <mirkosol>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bbarzu, david.paul.bryant, neubauer, tbuschto
Version: 1.3   
Target Milestone: 1.5 M1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 309519    
Bug Blocks: 320597    
Attachments:
Description Flags
Test code snippet none

Description Mirko Solazzi CLA 2010-05-19 12:25:12 EDT
I've a Tree (tree) with some columns (TreeColumn).  

When I remove a column using column.dispose();  the visualization on my browser doesn't refresh even if I execute the instruction  tree.redraw().
(I can note the change only for the column headers but not for the related texts)

When I add two columns using:

TreeColumn column1 = new TreeColumn(tree,SWT.LEFT);
TreeColumn column2 = new TreeColumn(tree,SWT.LEFT);

and set the texts for all items into the new columns I can't see these strings in the browser even if I execute the instruction  tree.redraw().


Moreover, the column.pack() command adjusts the column width accoding to the tree root node only without consider the other tree nodes.   

These commands work fine with SWT.
Comment 1 Ralf Sternberg CLA 2010-05-20 15:22:51 EDT
This will be fixed in the new Tree implementation.
Comment 2 Tim Buschtoens CLA 2010-07-21 06:53:44 EDT
These problems are not yet entirely fixed with the new tree.

- Disposing columns is rendered immediately, however the content of the cells is not updated correctly. When disposing the first of 3 columns, the content of the old first column is now displayed in the new first column, the content of the content now first column is displayed in the now second column, and the content of the new second column is gone.

- Adding content into new columns seems to work fine now.

- The behavior of column.pack seems unchanged.
Comment 3 wang.yu CLA 2011-04-06 09:34:16 EDT
Created attachment 192645 [details]
Test code snippet

I added a code snippet to verify the eventual fix.

Greetings,
Yu, Fujitsu FNST.
Comment 4 Ivan Furnadjiev CLA 2011-08-02 04:16:37 EDT
This bug has been fixed in CVS HEAD with the latest refactorings for bug 342978. The snippet from the comment # 3 succeed. I've opened a separate bug 353545 for column pack issue.