Community
Participate
Working Groups
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.
This will be fixed in the new Tree implementation.
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.
Created attachment 192645 [details] Test code snippet I added a code snippet to verify the eventual fix. Greetings, Yu, Fujitsu FNST.
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.