🚩 为文件树添加图标,修改项目结构

This commit is contained in:
gewuyou 2023-10-03 13:10:50 +08:00
parent 8a94fb67ec
commit b542a9322b

View File

@ -152,6 +152,7 @@ public class FileUtil {
DirFileModel childDirFileModel = getDirFileModel(f);
dirFileModel.getChildFile().add(childDirFileModel);
} else {
// todo 在此监测文件后缀设置对应的图标
dirFileModel.getChildFile().add(new DirFileModel(f.getAbsolutePath(), f.getName(), null, new FontIcon(FILE), new FontIcon(FILE)));
}
}