Browse Source

REPORT-9974【平台二轮回归】远程设计删除文件 不能移动到回收站

master
hzzz 6 years ago
parent
commit
09c042b271
  1. 5
      designer-base/src/main/java/com/fr/design/file/TemplateTreePane.java

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

@ -4,7 +4,7 @@
package com.fr.design.file;
import com.fr.base.FRContext;
import com.fr.base.io.FileAssistUtils;
import com.fr.base.io.FileAssistUtilsOperator;
import com.fr.design.gui.icontainer.UIScrollPane;
import com.fr.design.gui.itree.filetree.TemplateFileTree;
import com.fr.design.layout.FRGUIPaneFactory;
@ -180,7 +180,8 @@ public class TemplateTreePane extends JPanel implements FileOperations {
}
if (nodeFile.exists()) {
String path = StableUtils.pathJoin(nodeFile.getEnvPath(), nodeFile.getPath());
FileAssistUtils.moveToTrash(nodeFile.getPath());
FileAssistUtilsOperator fileAssistUtils = WorkContext.getCurrent().get(FileAssistUtilsOperator.class);
fileAssistUtils.moveToTrash(nodeFile.getPath());
deleteHistory(path.replaceAll("/", "\\\\"));
} else {
JOptionPane.showMessageDialog(this, Inter.getLocText("Warning-Template_Do_Not_Exsit"), ProductConstants.PRODUCT_NAME,

Loading…
Cancel
Save