Browse Source

Merge pull request #869 in DESIGN/design from ~HADES/design:release/10.0 to release/10.0

* commit '2f759e1770dc037e5e3b74d3e8837af1984300da':
  REPORT-16817 【10.0.3回归】超级链接-网络报表-可选择png类型的文件
bugfix/10.0
Hades 6 years ago
parent
commit
092c7bc2ff
  1. 10
      designer-base/src/main/java/com/fr/design/gui/itree/filetree/TemplateFileTree.java

10
designer-base/src/main/java/com/fr/design/gui/itree/filetree/TemplateFileTree.java

@ -228,6 +228,16 @@ public class TemplateFileTree extends EnvFileTree {
if (fileNodes == null) {
fileNodes = new FileNode[0];
}
// FileNodeFilter过滤
if (filter != null) {
List<FileNode> list = new ArrayList<FileNode>();
for (FileNode fileNode : fileNodes) {
if (filter.accept(fileNode)) {
list.add(fileNode);
}
}
fileNodes = list.toArray(new FileNode[list.size()]);
}
Arrays.sort(fileNodes, new FileNodeComparator(FRContext.getFileNodes().getSupportedTypes()));
return fileNodes;

Loading…
Cancel
Save