final TreeNode pluginsNode = model.getPluginsNode();
tree.collapsePath(new TreePath(model.getPathToRoot(pluginsNode)));
}
public void expandAll() {
final TreeNode pluginsNode = model.getPluginsNode();
tree.expandPath(new TreePath(model.getPathToRoot(pluginsNode)));
final TreeNode projectsNode = model.getProjectsNode();
//noinspection unchecked
final Enumeration<TreeNode> projectNodes = projectsNode.children();
while (projectNodes.hasMoreElements()) {
final TreeNode node = projectNodes.nextElement();
tree.expandPath(new TreePath(model.getPathToRoot(node)));
}
}