Browse Source

REPORT-19733 未装数据集插件的设计器远程设计时 编辑服务器数据集 点击确定会覆盖所有服务器中的插件数据集

bugfix/10.0
Hades 5 years ago
parent
commit
eaa4de1893
  1. 15
      designer-base/src/main/java/com/fr/design/data/datapane/TableDataPaneListPane.java

15
designer-base/src/main/java/com/fr/design/data/datapane/TableDataPaneListPane.java

@ -22,7 +22,6 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@ -211,15 +210,19 @@ public class TableDataPaneListPane extends JListControlPane implements TableData
@Override
public void update(TableDataConfig tableDataConfig) {
tableDataConfig.removeAllTableData();
ProcedureConfig.getInstance().removeAllProcedure();
Iterator<String> tableDataNames = tableDataConfig.getTableDatas().keySet().iterator();
while (tableDataNames.hasNext()) {
tableDataConfig.removeTableData(tableDataNames.next());
}
Iterator<String> procedureName = ProcedureConfig.getInstance().getProcedures().keySet().iterator();
while (procedureName.hasNext()) {
ProcedureConfig.getInstance().removeProcedure(procedureName.next());
}
Nameable[] tableDataArray = this.update();
Map<String,TableData> tableDataMap = new LinkedHashMap<String,TableData>();
for (int i = 0; i < tableDataArray.length; i++) {
NameObject nameObject = (NameObject) tableDataArray[i];
tableDataMap.put(nameObject.getName(), (TableData) nameObject.getObject());
tableDataConfig.addTableData(nameObject.getName(), (TableData) nameObject.getObject());
}
tableDataConfig.setTableDatas(tableDataMap);
}
@Override

Loading…
Cancel
Save