GridData componentGridData = new GridData();
componentGridData.verticalAlignment = SWT.BEGINNING;
componentPanel.setLayoutData(componentGridData);
Tree theComponent = new Tree(componentPanel, SWT.NONE);
theComponent.setLayoutData(new RowData(150, 450));
root = new BasicTreeNode();
root.setName("ROOT");
childString = new String[4];
for (int i = 0; i < childString.length; i++) {
childString[i] = "Child " + i;
child = new BasicTreeNode();
child.setName(childString[i]);
root.addNodes(child);
}
theComponent.setRootNode(root);
theComponent.getControl().getItem(0).setExpanded(true);
// ----------
Group testPanel = getTestPanel(mainComposite, theComponent);
GridData testPanelGridData = new GridData();
testPanelGridData.grabExcessHorizontalSpace = true;