|
|
@ -66,7 +66,10 @@ public class TableDataFollowingPasteUtils { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
AbstractTableDataWrapper tableDataWrapper = new TemplateTableDataWrapper(dataWrapperEntry.getValue(), dsName); |
|
|
|
AbstractTableDataWrapper tableDataWrapper = new TemplateTableDataWrapper(dataWrapperEntry.getValue(), dsName); |
|
|
|
tableDataTreePane.addDataPane(generateTableDataPaneWhenPaste(tableDataWrapper), dsName); |
|
|
|
AbstractTableDataPane<?> tableDataPane = generateTableDataPaneWhenPaste(tableDataWrapper); |
|
|
|
|
|
|
|
if (tableDataPane != null) { |
|
|
|
|
|
|
|
tableDataTreePane.addDataPane(tableDataPane, dsName); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -372,11 +375,16 @@ public class TableDataFollowingPasteUtils { |
|
|
|
* 生成粘贴(新建)时使用的AbstractTableDataPane |
|
|
|
* 生成粘贴(新建)时使用的AbstractTableDataPane |
|
|
|
* 主要是为了处理StoreProcedure,它在远程情况下,无法及时获取参数。这边因为是复制粘贴,所以直接用原TableData的参数即可 |
|
|
|
* 主要是为了处理StoreProcedure,它在远程情况下,无法及时获取参数。这边因为是复制粘贴,所以直接用原TableData的参数即可 |
|
|
|
* @param tableDataWrapper wrapper |
|
|
|
* @param tableDataWrapper wrapper |
|
|
|
* @return AbstractTableDataPane |
|
|
|
* @return AbstractTableDataPane,当TableData clone失败时,方法返回null |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
public static AbstractTableDataPane<?> generateTableDataPaneWhenPaste(AbstractTableDataWrapper tableDataWrapper) { |
|
|
|
public static AbstractTableDataPane<?> generateTableDataPaneWhenPaste(AbstractTableDataWrapper tableDataWrapper) { |
|
|
|
// 粘贴时再做一次TableData的clone
|
|
|
|
// 粘贴时再做一次TableData的clone
|
|
|
|
AbstractTableDataWrapper clonedWrapper = new TemplateTableDataWrapper(cloneTableData(tableDataWrapper.getTableData())); |
|
|
|
TableData clonedTableData = cloneTableData(tableDataWrapper.getTableData()); |
|
|
|
|
|
|
|
if (clonedTableData == null) { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
AbstractTableDataWrapper clonedWrapper = new TemplateTableDataWrapper(clonedTableData); |
|
|
|
AbstractTableDataPane<?> tableDataPane = clonedWrapper.creatTableDataPane(); |
|
|
|
AbstractTableDataPane<?> tableDataPane = clonedWrapper.creatTableDataPane(); |
|
|
|
TableData tableData = clonedWrapper.getTableData(); |
|
|
|
TableData tableData = clonedWrapper.getTableData(); |
|
|
|
if (tableData instanceof StoreProcedure) { |
|
|
|
if (tableData instanceof StoreProcedure) { |
|
|
|