Browse Source

REPORT-143899 设计器新建文件夹没有权限 修改逻辑删除单个节点后默认选中上层节点

release/11.0
shengzu.xue 2 weeks ago
parent
commit
dbfee2c111
  1. 6
      designer-base/src/main/java/com/fr/design/file/TemplateTreePane.java

6
designer-base/src/main/java/com/fr/design/file/TemplateTreePane.java

@ -397,7 +397,11 @@ public class TemplateTreePane extends JPanel implements FileOperations {
if (paths == null) {
reportletsTree.refresh();
} else {
for (TreePath path : Objects.requireNonNull(reportletsTree.getSelectionPaths())) {
// 删除一个节点的情况下,默认选中为该节点的上一级节点
if (paths.length == 1 && paths[0].getParentPath() != null) {
reportletsTree.setSelectionPath(paths[0].getParentPath());
}
for (TreePath path : Objects.requireNonNull(paths)) {
reportletsTree.refreshParent(path);
}
}

Loading…
Cancel
Save