use of com.revolsys.swing.tree.node.FunctionChildrenTreeNode in project com.revolsys.open by revolsys.
the class PathTreeNode method newFileSystemsTreeNode.
public static BaseTreeNode newFileSystemsTreeNode() {
final BaseTreeNode fileSystems = new FunctionChildrenTreeNode(FileSystems.getDefault(), "File Systems", getIconFolder("drive"), (fileSystem) -> {
final Iterable<Path> roots = ((FileSystem) fileSystem).getRootDirectories();
return getPathNodes(roots, true);
});
fileSystems.setOpen(true);
return fileSystems;
}
Aggregations