|
|
|
@ -378,8 +378,6 @@ public class TemplateTreePane extends JPanel implements FileOperations {
|
|
|
|
|
deleteNodes(deletableNodes); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Set<FileNode> deletedFileNode = deletableNodes.stream().map(treeNode -> (FileNode) treeNode.getUserObject()).collect(Collectors.toSet()); |
|
|
|
|
refreshAfterDelete(deletedFileNode); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void refreshAfterDelete(Set<FileNode> deletedPaths) { |
|
|
|
@ -426,6 +424,8 @@ public class TemplateTreePane extends JPanel implements FileOperations {
|
|
|
|
|
if (!get()) { |
|
|
|
|
showErrorDialog(); |
|
|
|
|
} |
|
|
|
|
Set<FileNode> deletedFileNode = nodes.stream().map(treeNode -> (FileNode) treeNode.getUserObject()).collect(Collectors.toSet()); |
|
|
|
|
refreshAfterDelete(deletedFileNode); |
|
|
|
|
} catch (InterruptedException | ExecutionException e) { |
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
} |
|
|
|
|