src/it/finsiel/siged/util/tree/TreeUtil.java
private static void addObj1ToObj2(DefaultMutableTreeNode top,
            ObjectTree obj, ObjectTree obj2) {

        // logger.debug("Adding:" + obj.getTreeDescription() + " to:" +
        // obj2.getTreeDescription());
        DefaultMutableTreeNode link = getTree(top, obj.getTreeId());
        if (link != null) {
            if (link.getUserObject() == null)
                link.setUserObject(obj);
        } else
            link = new DefaultMutableTreeNode(obj);
        DefaultMutableTreeNode uplink = getTree(top, obj2.getTreeId());
        if (uplink != null) {
            if (uplink.getUserObject() == null)
                uplink.setUserObject(obj2);
        } else
            uplink = new DefaultMutableTreeNode(obj2);
        uplink.add(link);
        top.add(uplink);
    }
/*
     * Add the loc tree to the loc2 tree ,
     */
Add the loc tree to the loc2 tree .
Add the loc tree to the loc2 tree .
private static void addObj1ToObj2(DefaultMutableTreeNode top,
            ObjectTree obj, ObjectTree obj2) {
        DefaultMutableTreeNode link = getTree(top, obj.getTreeId());
        if (link != null) {
            if (link.getUserObject() == null)
                link.setUserObject(obj);
        } else
            link = new DefaultMutableTreeNode(obj);
        DefaultMutableTreeNode uplink = getTree(top, obj2.getTreeId());
        if (uplink != null) {
            if (uplink.getUserObject() == null)
                uplink.setUserObject(obj2);
        } else
            uplink = new DefaultMutableTreeNode(obj2);
        uplink.add(link);
        top.add(uplink);
    }
private static void addObj1ToObj2 ( DefaultMutableTreeNode top , ObjectTree obj , ObjectTree obj2 ) { DefaultMutableTreeNode link = getTree ( top , obj . getTreeId ( ) ) ; if ( link != null ) { if ( link . getUserObject ( ) == null ) link . setUserObject ( obj ) ; } else link = new DefaultMutableTreeNode ( obj ) ; DefaultMutableTreeNode uplink = getTree ( top , obj2 . getTreeId ( ) ) ; if ( uplink != null ) { if ( uplink . getUserObject ( ) == null ) uplink . setUserObject ( obj2 ) ; } else uplink = new DefaultMutableTreeNode ( obj2 ) ; uplink . add ( link ) ; top . add ( uplink ) ; }
Add the loc tree to the loc2 tree ,
Add the loc tree to the loc2 tree
// logger.debug("Adding:" + obj.getTreeDescription() + " to:" + // obj2.getTreeDescription());