hack fix for relationships when import/export for freemind

This commit is contained in:
Claudio Barril 2014-09-07 16:58:14 -03:00
parent 2a121f91d2
commit bf5ae3b0de
2 changed files with 6 additions and 4 deletions

View File

@ -99,8 +99,9 @@ public class FreemindExporter
final List<RelationshipType> relationships = mindmapMap.getRelationship(); final List<RelationshipType> relationships = mindmapMap.getRelationship();
for (RelationshipType relationship : relationships) { for (RelationshipType relationship : relationships) {
Node srcNode = nodesMap.get(relationship.getSrcTopicId()); // FIXME:invert srcNode and dstNode to correct a bug in the wise mind map representation
Node dstNode = nodesMap.get(relationship.getDestTopicId()); Node srcNode = nodesMap.get(relationship.getDestTopicId());
Node dstNode = nodesMap.get(relationship.getSrcTopicId());
// Workaround for nodes without relationship associated ... // Workaround for nodes without relationship associated ...

View File

@ -322,8 +322,9 @@ public class FreemindImporter
final Arrowlink arrow = (Arrowlink) element; final Arrowlink arrow = (Arrowlink) element;
RelationshipType relt = mindmapObjectFactory.createRelationshipType(); RelationshipType relt = mindmapObjectFactory.createRelationshipType();
String destId = arrow.getDESTINATION(); String destId = arrow.getDESTINATION();
relt.setSrcTopicId(freeParent.getID()); // FIXME: invert srcTopic and dstTopic to correct a bug in the wise mind map representation
relt.setDestTopicId(destId); relt.setSrcTopicId(destId);
relt.setDestTopicId(freeParent.getID());
final String endinclination = arrow.getENDINCLINATION(); final String endinclination = arrow.getENDINCLINATION();
if (endinclination != null) { if (endinclination != null) {
String[] inclination = endinclination.split(";"); String[] inclination = endinclination.split(";");