Changeset 14406 in osm for applications
- Timestamp:
- 2009-04-06T23:05:49+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/osmarender/src/OsmarenderPlugin.java
r14120 r14406 74 74 try { 75 75 // 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(); 77 81 78 82 // get the exec line -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveEditLayerTimerTask.java
r13497 r14406 10 10 import java.io.FileOutputStream; 11 11 import java.io.IOException; 12 import java.io.PrintWriter; 12 13 import java.util.TimerTask; 13 14 … … 54 55 System.out.println("AutoSaving osm data to file " + file.getAbsolutePath()); 55 56 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(); 57 62 } 58 63 tmpFile.renameTo(file); -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/GridLayer.java
r13497 r14406 13 13 import org.openstreetmap.josm.data.osm.*; 14 14 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 15 import org.openstreetmap.josm.data.osm.visitor. Visitor;15 import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor; 16 16 import org.openstreetmap.josm.gui.MapView; 17 17 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; … … 130 130 * Visitor that highlights all cells the selected primitives go through 131 131 */ 132 class HighlightCellVisitor implementsVisitor132 class HighlightCellVisitor extends AbstractVisitor 133 133 { 134 134 /** The MapView */ -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/Test.java
r14015 r14406 13 13 import org.openstreetmap.josm.data.osm.Relation; 14 14 import org.openstreetmap.josm.data.osm.Way; 15 import org.openstreetmap.josm.data.osm.visitor. Visitor;15 import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor; 16 16 import org.openstreetmap.josm.tools.GBC; 17 17 … … 25 25 * @author frsantos 26 26 */ 27 public class Test implementsVisitor27 public class Test extends AbstractVisitor 28 28 { 29 29 /** Name of the test */ -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/TestError.java
r13497 r14406 15 15 import org.openstreetmap.josm.data.osm.Way; 16 16 import org.openstreetmap.josm.data.osm.WaySegment; 17 import org.openstreetmap.josm.data.osm.visitor. Visitor;17 import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor; 18 18 import org.openstreetmap.josm.gui.MapView; 19 19 … … 252 252 * @author frsantos 253 253 */ 254 class PaintVisitor implements ValidatorVisitor,Visitor {254 class PaintVisitor extends AbstractVisitor implements ValidatorVisitor { 255 255 /** The graphics */ 256 256 private final Graphics g; -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/util/AgregatePrimitivesVisitor.java
r13497 r14406 6 6 7 7 import org.openstreetmap.josm.data.osm.*; 8 import org.openstreetmap.josm.data.osm.visitor. Visitor;8 import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor; 9 9 10 10 /** … … 15 15 * @author frsantos 16 16 */ 17 public class AgregatePrimitivesVisitor implementsVisitor17 public class AgregatePrimitivesVisitor extends AbstractVisitor 18 18 { 19 19 /** Aggregated data */
Note:
See TracChangeset
for help on using the changeset viewer.