Port FileSelector and FileSystemTreeModel into Scala