[Megameknet-cvs] MegaMekNET/src/common/visitor XMLSaveVisitor.java,1.12,1.13
Status: Inactive
Brought to you by:
mcwizard
From: Immanuel S. <im...@us...> - 2005-04-11 20:01:43
|
Update of /cvsroot/megameknet/MegaMekNET/src/common/visitor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15726/src/common/visitor Modified Files: XMLSaveVisitor.java Log Message: fixed xml saving, now featuring asynchron saves. Index: XMLSaveVisitor.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/common/visitor/XMLSaveVisitor.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** XMLSaveVisitor.java 11 Apr 2005 19:13:21 -0000 1.12 --- XMLSaveVisitor.java 11 Apr 2005 20:01:33 -0000 1.13 *************** *** 468,475 **** public Object visitBlackBoard(BlackBoard data) { Element e = start("blackBoard", data, BlackBoard.class); ! LinkedList l = new LinkedList(); ! for (Iterator it = data.iterator(); it.hasNext();) ! l.add(it.next()); ! addAllVisitorables(e, null, l); return e; } --- 468,472 ---- public Object visitBlackBoard(BlackBoard data) { Element e = start("blackBoard", data, BlackBoard.class); ! addAllVisitorables(e, null, data.allMessages()); return e; } |