Changeset 243
- Timestamp:
- 03/01/06 14:29:14
- Files:
-
- trunk/calendar3/dumprestore/src/org/bedework/dumprestore/dump/dumpling/DumpAll.java (modified) (1 diff)
- trunk/calendar3/dumprestore/src/org/bedework/dumprestore/dump/dumpling/DumpEventAnnotations.java (added)
- trunk/calendar3/dumprestore/src/org/bedework/dumprestore/dump/dumpling/DumpEvents.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/dumprestore/src/org/bedework/dumprestore/dump/dumpling/DumpAll.java
r218 r243 123 123 info("Dumping event annotations."); 124 124 di.open(); 125 new DumpEvent s(globals).dumpSection(di.getEventAnnotations());125 new DumpEventAnnotations(globals).dumpSection(di.getEventAnnotations()); 126 126 di.close(); 127 127 trunk/calendar3/dumprestore/src/org/bedework/dumprestore/dump/dumpling/DumpEvents.java
r218 r243 44 44 */ 45 45 public class DumpEvents extends Dumpling { 46 protected boolean annotations; 47 46 48 /** Constructor 47 49 * … … 56 58 */ 57 59 public void dumpSection(Iterator it) throws Throwable { 58 boolean taggedStart = false; 59 boolean annotations = false; 60 if (annotations) { 61 tagStart(sectionEventAnnotations); 62 } else { 63 tagStart(sectionEvents); 64 } 60 65 61 66 while (it.hasNext()) { 62 BwEvent e = (BwEvent)it.next(); 63 64 if (!taggedStart) { 65 if (e instanceof BwEventAnnotation) { 66 tagStart(sectionEventAnnotations); 67 annotations = true; 68 } else { 69 tagStart(sectionEvents); 70 } 71 72 taggedStart = true; 73 } 74 75 dumpEvent(e); 67 dumpEvent((BwEvent)it.next()); 76 68 } 77 69
