|
|
@ -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()); |
|
|
|