Ignore:
Timestamp:
2009-04-06T23:05:49+02:00 (16 years ago)
Author:
frederik
Message:

minof fixes to some JOSM plugins to reflect changes in the Visitor interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveEditLayerTimerTask.java

    r13497 r14406  
    1010import java.io.FileOutputStream;
    1111import java.io.IOException;
     12import java.io.PrintWriter;
    1213import java.util.TimerTask;
    1314
     
    5455            System.out.println("AutoSaving osm data to file " + file.getAbsolutePath());
    5556            synchronized(LiveGpsLock.class) {
    56                 XmlWriter.output(new FileOutputStream(tmpFile), new OsmWriter.All(dataset, false));
     57                OsmWriter w = new OsmWriter(new PrintWriter(new FileOutputStream(tmpFile)), false, dataset.version);
     58                w.header();
     59                w.writeDataSources(dataset);
     60                w.writeContent(dataset);
     61                w.footer();
    5762            }
    5863            tmpFile.renameTo(file);
Note: See TracChangeset for help on using the changeset viewer.