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

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


    }
    m_node.addPath(loopPath);
  }

  public void updateGenerator() throws Exception {
    TreeMapper treeMapper=m_node.getTreeMapper();
    TreeComponent targetTC=m_node.getTreeComponent();
    TreeComponent sourceTC=treeMapper.m_sourceTreeComponent;
    if(m_RootLoopParent!=null)m_RootLoopParent.resetLoopBranches(sourceTC);
    Node targetRoot=targetTC.m_root;
    Map<Node,Node> generatorMap=treeMapper.m_generatorMap;
    generatorMap.clear(); // this is necessary due to the refresh problem
    Map<Node,Set<Node>> conflictMap=treeMapper.m_conflictMap;
    Set<InvalidMapping> invalidMappings=Sets.newHashSet();
        Node sourceRoot=sourceTC.getDtdRoot();
    clearTargetLoopList(sourceRoot);
    String startingGenerator=Utils.removeBrackets(sourceRoot.m_deName);
    targetRoot.m_mappingKits.updateGenerator(startingGenerator, sourceTC, generatorMap, conflictMap, invalidMappings);
    treeMapper.getMappingManager().setConflictMappings(invalidMappings);
  }
View Full Code Here


        }
        try {
            EntityPageDisplayer pageDisplayer = m_TreeMapper.getTreeMapperContainer().getPageDisplayer();
            Editor page = pageDisplayer.findOpenPage(m_new);
            if (page instanceof TransformationPage) {
                TreeMapper treeMapper = ((TransformationPage) page).getTreeMapper();
                treeMapper.setMapList(lines, true);
                treeMapper.updateHiddenNodesOnMapChange();
            }
            m_new.setMapList(lines);
            m_TreeMapper.getTreeMapperContainer().save(m_new);
            // Now we open a page for the new transformation (or switch
            // to the page if it is already opened):
View Full Code Here

        Editor editor = getEditor();
        editor.show(new NodeRenamerPanel(tree, node));
    }

    private Editor getEditor() {
        TreeMapper treeMapper = node.getTreeMapper();
        OverlayContainer overlayContainer = WidgetUtils.getOverlayContainerAncestor(treeMapper);
        return overlayContainer != null ? new OverlayEditor(overlayContainer) : new DialogEditor();
    }
View Full Code Here

        // the salesforce node, has been done.
        EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                TreeMapper mapper = page.getTreeMapper();
                Node sourceNode = getSourceNode(mapper);
                Node targetNode = getTargetNode(mapper);
                if (sourceNode != null && targetNode != null) {
                    Future<?> mapJob = mapper.doStraightMappings(sourceNode, targetNode);
                    savePageAfterMappingIsDone(mapJob);
                }
            }
        });
    }
View Full Code Here

                    if (result.canceled || result.failed) {
                        return;
                    }
                    File fileOnDisk = openDataFile(sourceFile);
                    if (fileOnDisk != null) {
                        TreeMapper treeMapper = page.getTreeMapper();
                        treeMapper.openSourceDataFile(fileOnDisk);
                        page.askForAttention();
                    }
                }
            });
        }
View Full Code Here

        }
        return null;
    }

    private void deleteMappedPreCondition(NodeMapping mp) {
        TreeMapper treemapper = mp.getTreeMapper();
        NodePath targetPath = mp.getTargetPath();
        Node targetNode = treemapper.findTargetNode(targetPath);
        Node parentNode = targetNode.m_parent;
        treemapper.getMappingManager().deleteMapping(mp);
        treemapper.updateMapAreaTables(targetPath.toString(), null);
        Node precon = parentNode.getPrecondition();
        try {
            precon.updateMappingKits("");
        } catch (Exception e) {
            e.printStackTrace();
        }
        if (precon != null) {
            parentNode.m_children.remove(precon);
            parentNode.m_CROM.removeChild(precon.m_CROM);
            parentNode.setHasPreconditionFlag(false);
            treemapper.removeTargetNode(precon);
            treemapper.m_targetTreeComponent.repaint();
        }
    }
View Full Code Here

    }

    public void deleteMultipleMapped() {
        if(getTreeMapper()==null)return;
        if(isMultipleMap()) {
            TreeMapper treemapper = getTreeMapper();
            removeMappingsUnderFolder();
            m_parent.m_CROM.removeChild(m_CROM);
            m_parent.m_children.remove(this);
            treemapper.removeTargetNode(this);
        }
        m_TreeComponent.repaint();
    }
View Full Code Here

        }
        m_TreeComponent.repaint();
    }

    public void removeMappingsUnderFolder() {
        TreeMapper treemapper = getTreeMapper();
        if (anyChildUsed()) {
            removeEntireMappedFolder();
            treemapper.updateMappingFlag();
        } else {
            if (treemapper.getMappingManager().deleteMapping(new NodePath(m_deName))) {
                treemapper.updateMappingFlag();
                treemapper.updateMapAreaTables(m_deName, null);
            }
            m_TreeComponent.setDirty();
        }
    }
View Full Code Here

        } else if (!crom.hasChildren()) {
            String schema_type = crom.getSchemaTypeExpandedName();
            if (schema_type != null) {
                CROM schema_type_crom = m_TreeComponent.getElementTypeMap().get(schema_type);
                if (schema_type_crom != null) {
                    TreeMapper treeMapper = getTreeMapper();
                    boolean bExpandMinimal = (treeMapper == null) ? false
                            : treeMapper.getNodeExpansionMode() == NodeExpansionMode.MINIMAL;
                    int n = crom.explode(schema_type_crom, bExpandMinimal,
                            m_TreeComponent.getElementTypeMap(), exploded,
                            header);
                    if (n > 0) {
                        m_TreeComponent.setDirty();
View Full Code Here

TOP

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

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.