Package org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.MapArea_Migration


        TreeComponent newTargetTree = new MigrationTree(this, m_new.getOutputStructure());
        newTargetTree.setSearchTitle("Search New Target Tree");
    m_newTargetScrollPane=new TreeScrollPane(this,newTargetTree,m_newTargetJtr,"new TARGET");
    m_newTargetTree=m_newTargetScrollPane.m_tree;

    m_sourceMapArea=new MapArea_Migration(m_newSourceScrollPane, m_oldSourceScrollPane, false);
    m_targetMapArea=new MapArea_Migration(m_oldTargetScrollPane, m_newTargetScrollPane, true);
    m_mapArea=new MapArea(this, m_old);

    m_oldSourceTree.setTables(null, m_mapArea.m_mappedSourceSet);
    m_oldTargetTree.setTables(m_mapArea.m_mappedTargetSet, null);
View Full Code Here


        }

    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();
    }
  }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.MapArea_Migration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.