Browse Source

Merge pull request #624 in DESIGN/design from ~HADES/design:feature/10.0 to feature/10.0

* commit '2dbbe0cdc1d1a108c9fad0e0544c7111a462717c':
  代码质量
  代码规范性
  REPORT-12877 选中多个模板,点击删除,提示没有权限
  REPORT-12877 选中多个模板,点击删除,提示没有权限
research/10.0
neil 6 years ago
parent
commit
a13334a5c2
  1. 3
      designer-base/src/main/java/com/fr/design/file/TemplateTreePane.java

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

@ -17,6 +17,7 @@ import com.fr.file.filetree.IOFileNodeFilter;
import com.fr.general.ComparatorUtils;
import com.fr.general.IOUtils;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.ArrayUtils;
import com.fr.stable.CoreConstants;
import com.fr.stable.StableUtils;
import com.fr.stable.project.ProjectConstants;
@ -377,7 +378,7 @@ public class TemplateTreePane extends JPanel implements FileOperations {
TreePath[] selectedTreePaths = reportletsTree.getSelectionPaths();
if (selectedTreePaths == null || selectedTreePaths.length != 1) {
if (ArrayUtils.isEmpty(selectedTreePaths)) {
return false;
}
// 选中的是文件夹

Loading…
Cancel
Save