FileTreeNodeDataAdapter nodeDataAdapter = new FileTreeNodeDataAdapter();
Tree<FileTreeNode> tree = Tree.create(
view.treeView, nodeDataAdapter, nodeRenderer, appContext.getResources());
// Create the UI controller.
FileTreeUiController treeUiController = FileTreeUiController.create(place,
fileTreeModel,
tree,
appContext,
debuggingModelController);
// attach a file tree menu to the button
treeUiController.getContextMenuController()
.createMenuDropdown(Elements.asJsElement(view.menuButton));
// Instantiate and return the FileTreeSection.
FileTreeSection fileTreeSection =
new FileTreeSection(view, tree, treeUiController, fileTreeModel);