Fix freemind import/export notes.

This commit is contained in:
Paulo Gustavo Veiga
2012-12-01 17:22:54 -03:00
parent 6c1188314b
commit bad11bea88
13 changed files with 337 additions and 43 deletions

View File

@@ -43,7 +43,7 @@ public class JaxbCDATAMarshaller {
// When processing xml that doesn't use namespaces, simply omit the
// namespace prefix as shown in the third CDataElement below.
of.setCDataElements(
new String[]{"^text"}); //
new String[]{"^text","^note"}); //
// set any other options you'd like
// of.setPreserveSpace(true);

View File

@@ -298,7 +298,7 @@ public class FreemindImporter
if (textNote == null) // It is not a note is a BlinkingNodeHook or AutomaticLayout Hook
{
textNote = EMPTY_NOTE;
mindmapNote.setText(textNote);
mindmapNote.setValue(textNote);
currentWiseTopic.setNote(mindmapNote);
}
} else if (element instanceof Richcontent) {
@@ -312,7 +312,7 @@ public class FreemindImporter
String text = html2text(content);
final com.wisemapping.jaxb.wisemap.Note mindmapNote = new com.wisemapping.jaxb.wisemap.Note();
text = text != null ? text : EMPTY_NOTE;
mindmapNote.setText(text);
mindmapNote.setValue(text);
currentWiseTopic.setNote(mindmapNote);
}