Have a look at GridLayoutFactory (new in M5). It can generate grid data for all the controls in a layout. See bug 123740 for a small SWT example application that creates this shell with only two lines of layout-related code:
Monday, February 20, 2006
Tuesday, February 14, 2006
Two important enhancements were made to TreeViewer in 3.2 M5. I thought I should mention them somewhere - since they are not visible to end-users, the new and noteworthy document does not mention them:
- Supporting elements that appear multiple times in a tree, as long as there are different parent paths - see bug 84314.
- Support for SWT.VIRTUAL trees - see bug 112000. Note that all along, TreeViewer implemented lazy trees: the tree content provider's getChildren() method is only called when the user expands a node. The virtual tree viewer is helpful if there are lots of children per parent, or if it expensive to compute the information needed for each child.
Posted by Boris Bokowski at Tuesday, February 14, 2006