}
boolean bIsInvert=dlg.invert;
try {
MapArea_Migration map=bIsSource?m_sourceMapArea:m_targetMapArea;
TreeComponent old_tree=bIsSource?m_oldSourceTree:m_oldTargetTree;
TreeComponent new_tree=bIsSource?m_newSourceTree:m_newTargetTree;
map.removeMappings();
String[] lines=KongaIoUtils.readLines(dlg.file);
for(String line:lines){
int k=line.indexOf('\t');
if(k<0)continue;
String s1=line.substring(0,k);
String s2=line.substring(k+1);
Node old_node=old_tree.findNode(bIsInvert?s2:s1);
Node new_node=new_tree.findNode(bIsInvert?s1:s2);
if(old_node!=null&&new_node!=null){
map.m_table_old2new.put(old_node, new_node);
map.m_table_new2old.put(new_node,old_node);
} else {
if(old_node==null&&new_node==null){
System.out.println("Can't find old_node:"+(bIsInvert?s2:s1));
System.out.println(" new_node:"+(bIsInvert?s1:s2));
} else if(old_node==null){
System.out.println("Can't find old_node:"+(bIsInvert?s2:s1));
} else {
System.out.println("Can't find new_node:"+(bIsInvert?s1:s2));
}
}
}
map.repaint();
} catch (IOException e1) {
e1.printStackTrace();
}
}