Hello!
My files are not showing properly when using this Addon. Here is some code example.
Can someone please help me with this issue?
File rootFile = new File("C:/Example");
FilesystemData root = new FilesystemData(rootFile, false);
FilesystemDataProvider fileSystem = new FilesystemDataProvider(root);
Tree<File> tree = new Tree<>(fileSystem, File::getName);
tree.setDataProvider(fileSystem);
tree.setItemIconProvider(FileTypeResolver::getIcon);