} else if (createRootItem) {
rootItem.addItem(folderItem);
} else {
addItem(folderItem);
}
RepositoryTreeNode treeNode = repositoryTreeNode.getFolders().get(folder);
if (showOnlyFolders && treeNode.getFolders().size() == 0) {
TreeItem hiddenItem = new TreeItem();
folderItem.addItem(hiddenItem);
String tooltip = folder.getDescription();
new ToolTip(label, null, tooltip);
hiddenItem.setVisible(false);
} else if (treeNode.getFiles().size() == 0 && treeNode.getFolders().size() == 0) {
TreeItem hiddenItem = new TreeItem();
folderItem.addItem(hiddenItem);
String tooltip = folder.getDescription() + " (empty)";
new ToolTip(label, null, tooltip);
hiddenItem.setVisible(false);