|
|
@ -230,13 +230,14 @@ public class TableDataTreePane extends BasicTableDataTreePane { |
|
|
|
protected TemplateTableDataWrapper getTableDataInstance() { |
|
|
|
protected TemplateTableDataWrapper getTableDataInstance() { |
|
|
|
TableData tableData = (TableData) creator.createObject(); |
|
|
|
TableData tableData = (TableData) creator.createObject(); |
|
|
|
|
|
|
|
|
|
|
|
//新建的DBTableData单独换为DBTableData
|
|
|
|
//11中所有数据集都是StrategicTableData的子类
|
|
|
|
if (tableData instanceof StrategicTableData) { |
|
|
|
if (tableData instanceof StrategicTableData) { |
|
|
|
tableData = new DBTableData(); |
|
|
|
StrategicTableData std = (StrategicTableData) tableData; |
|
|
|
StrategicTableData.Binder |
|
|
|
tableData = StrategicTableData.Binder |
|
|
|
.bind((DBTableData) tableData) |
|
|
|
.bind(std) |
|
|
|
.setDsName(createDsName(creator.getPrefix())) |
|
|
|
.setDsName(createDsName(creator.getPrefix())) |
|
|
|
.setScope(StrategicTableData.Scope.TEMPLATE); |
|
|
|
.setScope(StrategicTableData.Scope.TEMPLATE) |
|
|
|
|
|
|
|
.done(); |
|
|
|
} |
|
|
|
} |
|
|
|
return new TemplateTableDataWrapper(tableData); |
|
|
|
return new TemplateTableDataWrapper(tableData); |
|
|
|
} |
|
|
|
} |
|
|
|