Fix add relation issue. Pending: Ignore position in the old model.

This commit is contained in:
Paulo Gustavo Veiga
2011-04-28 22:08:43 -03:00
parent a2b0838200
commit 7fc6b7465d
13 changed files with 18 additions and 24 deletions

View File

@@ -135,9 +135,7 @@ public class FreemindImporter
nodesMap.put(freeNode.getID(), wiseTopic);
convertChildNodes(freeNode, wiseTopic, 1);
// @Todo: Pablo, tenemos que ver como arreglamos esto. No estoy seteando a los hijos la posicion.
//addRelationships(mindmapMap);
addRelationships(mindmapMap);
JAXBUtils.saveMap(mindmapMap, baos, "com.wisemapping.xml.mindmap");
@@ -233,14 +231,10 @@ public class FreemindImporter
}
wiseChild.setOrder(norder);
// @Todo: This is required in the old layout. Pablo, we need to discuss this.
if (depth == 1) {
// Convert node position
int childrenCount = freeChilden.size();
final String position = convertPosition(wiseParent, freeChild, depth, norder, childrenCount);
wiseChild.setPosition(position);
}
// Convert node position
int childrenCount = freeChilden.size();
final String position = convertPosition(wiseParent, freeChild, depth, norder, childrenCount);
wiseChild.setPosition(position);
// Convert the rest of the node properties ...
convertNodeProperties(freeChild, wiseChild);