Ignore:
Timestamp:
2007-11-01T09:05:28+01:00 (17 years ago)
Author:
frederik
Message:

temporary changes to support new gpx handling in JOSM; CAUTION: autosave currently disabled!

Location:
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor
Files:
2 edited

Legend:

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

    r4522 r5270  
    110110     */
    111111    public XmlWriter.OsmWriterInterface getXmlWriter() {
     112        return null;
     113
     114        /*
     115         * FIXME! this disables auto-save. need to work with new GPX writing code in JOSM.
     116         *
    112117        RawGpsLayer gpsLayer = findGpsLayer(gpsLayerName, RawGpsLayer.class);
    113118        if(gpsLayer == null) {
     
    115120        }
    116121        return new GpxWriter.Trk(gpsLayer.data);
     122        */
    117123    }
    118124
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetWaypointAction.java

    r4491 r5270  
    1616import org.openstreetmap.josm.Main;
    1717import org.openstreetmap.josm.data.coor.LatLon;
     18import org.openstreetmap.josm.data.gpx.GpxData;
    1819import org.openstreetmap.josm.gui.layer.Layer;
    1920import org.openstreetmap.josm.gui.layer.markerlayer.Marker;
     
    9091            // not found:
    9192            if(markerLayer == null) {
    92                 markerLayer = new MarkerLayer(new ArrayList<Marker>(), MARKER_LAYER_NAME, null);
     93                markerLayer = new MarkerLayer(new GpxData(), MARKER_LAYER_NAME, null);
    9394                Main.main.addLayer(markerLayer);
    9495            }
Note: See TracChangeset for help on using the changeset viewer.