Class TreeFactory

public final class TreeFactory extends AbstractControlFactory<TreeFactory,Tree>
This class provides a convenient shorthand for creating and initializing Tree. This offers several benefits over creating Tree normal way: Example usage:
 Tree tree = TreeFactory.newTree(SWT.CHECK) //
                .headerVisible(true) //
                .linesVisible(true) //
                .onSelect(e -> treeClicked(e)) //
                .onExpand(e -> treeExpanded(e)) //

The above example creates a tree, sets some properties, registers a SelectionListener and a TreeListener for expansion and finally creates the tree in "parent".

Note that this class does not extend AbstractCompositeFactory even though Tree extends Composite. This is because Tree is not supposed to be used like a Composite.