Browse Source

REPORT-79492 复制多张模板,删除一部分,触发粘贴后没有定位到粘贴的位置

release/11.0
roger 2 years ago
parent
commit
472445f829
  1. 7
      designer-base/src/main/java/com/fr/design/file/DefaultTemplateTreeDefineProcessor.java

7
designer-base/src/main/java/com/fr/design/file/DefaultTemplateTreeDefineProcessor.java

@ -215,7 +215,7 @@ public class DefaultTemplateTreeDefineProcessor extends AbstractTemplateTreeDefi
WARNING_MESSAGE);
return;
}
doPaste(targetDir, pasteNodes);
doPaste(targetDir, treeNodeList);
}
/**
@ -256,7 +256,10 @@ public class DefaultTemplateTreeDefineProcessor extends AbstractTemplateTreeDefi
for (ExpandMutableTreeNode node : pasteNodes) {
if (node.getUserObject() instanceof FileNode) {
FileNode fileNode = (FileNode) node.getUserObject();
targetFile = FileOperationHelper.getInstance().copyFile(fileNode, targetDir);
String newTargetFile = FileOperationHelper.getInstance().copyFile(fileNode, targetDir);
if (TemplateResourceManager.getResource().exist(newTargetFile)) {
targetFile = newTargetFile;
}
FineLoggerFactory.getLogger().debug("Template: {} paste to {} success.", fileNode.getEnvPath(), targetDir);
}
}

Loading…
Cancel
Save