Changeset 14406 in osm for applications


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

Location:
applications/editors/josm/plugins
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/osmarender/src/OsmarenderPlugin.java

    r14120 r14406  
    7474            try {
    7575                // write to plugin dir
    76                 OsmWriter.output(new FileOutputStream(getPluginDir()+File.separator+"data.osm"), new OsmWriter.All(fromDataSet, true));
     76                OsmWriter w = new OsmWriter(new PrintWriter(new FileOutputStream(getPluginDir()+File.separator+"data.osm")), false, fromDataSet.version);
     77                w.header();
     78                w.writeDataSources(fromDataSet);
     79                w.writeContent(fromDataSet);
     80                w.footer();
    7781
    7882                // get the exec line
  • 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);
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/GridLayer.java

    r13497 r14406  
    1313import org.openstreetmap.josm.data.osm.*;
    1414import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    15 import org.openstreetmap.josm.data.osm.visitor.Visitor;
     15import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
    1616import org.openstreetmap.josm.gui.MapView;
    1717import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
     
    130130     * Visitor that highlights all cells the selected primitives go through
    131131     */
    132     class HighlightCellVisitor implements Visitor
     132    class HighlightCellVisitor extends AbstractVisitor
    133133    {
    134134        /** The MapView */
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/Test.java

    r14015 r14406  
    1313import org.openstreetmap.josm.data.osm.Relation;
    1414import org.openstreetmap.josm.data.osm.Way;
    15 import org.openstreetmap.josm.data.osm.visitor.Visitor;
     15import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
    1616import org.openstreetmap.josm.tools.GBC;
    1717
     
    2525 * @author frsantos
    2626 */
    27 public class Test implements Visitor
     27public class Test extends AbstractVisitor
    2828{
    2929    /** Name of the test */
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/TestError.java

    r13497 r14406  
    1515import org.openstreetmap.josm.data.osm.Way;
    1616import org.openstreetmap.josm.data.osm.WaySegment;
    17 import org.openstreetmap.josm.data.osm.visitor.Visitor;
     17import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
    1818import org.openstreetmap.josm.gui.MapView;
    1919
     
    252252     * @author frsantos
    253253     */
    254     class PaintVisitor implements ValidatorVisitor, Visitor {
     254    class PaintVisitor extends AbstractVisitor implements ValidatorVisitor {
    255255        /** The graphics */
    256256        private final Graphics g;
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/util/AgregatePrimitivesVisitor.java

    r13497 r14406  
    66
    77import org.openstreetmap.josm.data.osm.*;
    8 import org.openstreetmap.josm.data.osm.visitor.Visitor;
     8import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
    99
    1010/**
     
    1515 * @author frsantos
    1616 */
    17 public class AgregatePrimitivesVisitor implements Visitor
     17public class AgregatePrimitivesVisitor extends AbstractVisitor
    1818{
    1919    /** Aggregated data */
Note: See TracChangeset for help on using the changeset viewer.