Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313569 - [Tree] redraw problem when modifying columns
Summary: [Tree] redraw problem when modifying columns
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.5 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 309519
Blocks: 320597
  Show dependency tree
 
Reported: 2010-05-19 12:25 EDT by Mirko Solazzi CLA
Modified: 2011-08-02 04:16 EDT (History)
4 users (show)

See Also:


Attachments
Test code snippet (2.85 KB, application/octet-stream)
2011-04-06 09:34 EDT, wang.yu CLA
no flags Details

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