🚩 为文件树添加图标,修改项目结构
This commit is contained in:
parent
8a94fb67ec
commit
b542a9322b
@ -152,6 +152,7 @@ public class FileUtil {
|
|||||||
DirFileModel childDirFileModel = getDirFileModel(f);
|
DirFileModel childDirFileModel = getDirFileModel(f);
|
||||||
dirFileModel.getChildFile().add(childDirFileModel);
|
dirFileModel.getChildFile().add(childDirFileModel);
|
||||||
} else {
|
} else {
|
||||||
|
// todo 在此监测文件后缀,设置对应的图标
|
||||||
dirFileModel.getChildFile().add(new DirFileModel(f.getAbsolutePath(), f.getName(), null, new FontIcon(FILE), new FontIcon(FILE)));
|
dirFileModel.getChildFile().add(new DirFileModel(f.getAbsolutePath(), f.getName(), null, new FontIcon(FILE), new FontIcon(FILE)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user