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();
for (RelationshipType relationship : relationships) {
Node srcNode = nodesMap.get(relationship.getSrcTopicId());
Node dstNode = nodesMap.get(relationship.getDestTopicId());
// FIXME:invert srcNode and dstNode to correct a bug in the wise mind map representation
Node srcNode = nodesMap.get(relationship.getDestTopicId());
Node dstNode = nodesMap.get(relationship.getSrcTopicId());
// Workaround for nodes without relationship associated ...

View File

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