Browse Source

REPORT-71449 【冒烟】不复制新的数据集,“剪贴版”的数据集会变化

【问题原因】复制到剪切板中的数据集,在粘贴的时候,TableData没做clone处理,当修改粘贴出来的数据集时,会同步影响剪切板里的TableData
【改动思路】粘贴时增加clone处理
【review建议】无
final/11.0
Yvan 3 years ago
parent
commit
a350e241b7
  1. 6
      designer-base/src/main/java/com/fr/design/data/tabledata/paste/TableDataFollowingPasteUtils.java

6
designer-base/src/main/java/com/fr/design/data/tabledata/paste/TableDataFollowingPasteUtils.java

@ -375,8 +375,10 @@ public class TableDataFollowingPasteUtils {
* @return AbstractTableDataPane * @return AbstractTableDataPane
*/ */
public static AbstractTableDataPane<?> generateTableDataPaneWhenPaste(AbstractTableDataWrapper tableDataWrapper) { public static AbstractTableDataPane<?> generateTableDataPaneWhenPaste(AbstractTableDataWrapper tableDataWrapper) {
AbstractTableDataPane<?> tableDataPane = tableDataWrapper.creatTableDataPane(); // 粘贴时再做一次TableData的clone
TableData tableData = tableDataWrapper.getTableData(); AbstractTableDataWrapper clonedWrapper = new TemplateTableDataWrapper(cloneTableData(tableDataWrapper.getTableData()));
AbstractTableDataPane<?> tableDataPane = clonedWrapper.creatTableDataPane();
TableData tableData = clonedWrapper.getTableData();
if (tableData instanceof StoreProcedure) { if (tableData instanceof StoreProcedure) {
StoreProcedure storeProcedure = (StoreProcedure) tableData; StoreProcedure storeProcedure = (StoreProcedure) tableData;
((ProcedureDataPane) tableDataPane).populateParameters(storeProcedure.getParameters()); ((ProcedureDataPane) tableDataPane).populateParameters(storeProcedure.getParameters());

Loading…
Cancel
Save