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