}
// Prepare tree, attach edit window to tree
orderElementTreeController = new OrderElementTreeController(
orderModel, orderElementController, messagesForUser);
TreeComponent orderElementsTree = (TreeComponent) editWindow
.getFellow("orderElementTree");
orderElementTreeController.setTreeComponent(orderElementsTree);
orderElementsTree.useController(orderElementTreeController);
orderElementTreeController.setReadOnly(readOnly);
Tree tree = (Tree) orderElementsTree.getFellowIfAny("tree");
tree.setModel(null);
tree.setTreeitemRenderer(orderElementTreeController.getRenderer());
reloadTree(orderElementsTree);
}