Ignore:
Timestamp:
2013-01-31T14:39:51+01:00 (12 years ago)
Author:
bastik
Message:

adapt to changes in JOSM core ([josm5679] and [josm5681])

Location:
applications/editors/josm/plugins/dataimport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/dataimport/build.xml

    r26605 r29222  
    3131    <property name="commit.message" value="Changed constructor signature, updated build.xml"/>
    3232    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    33     <property name="plugin.main.version" value="4394"/>
     33    <property name="plugin.main.version" value="5681"/>
    3434    <!--
    3535      ************************************************
  • applications/editors/josm/plugins/dataimport/src/org/openstreetmap/josm/plugins/dataimport/io/SingleSegmentGpxTrack.java

    r23191 r29222  
    88import org.openstreetmap.josm.data.gpx.GpxTrack;
    99import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     10import org.openstreetmap.josm.data.gpx.WithAttributes;
    1011
    11 public class SingleSegmentGpxTrack implements GpxTrack {
     12public class SingleSegmentGpxTrack extends WithAttributes implements GpxTrack {
    1213
    13     private final Map<String, Object> attributes;
    1414    private final GpxTrackSegment trackSegment;
    1515
    1616    public SingleSegmentGpxTrack(GpxTrackSegment trackSegment, Map<String, Object> attributes) {
    17         this.attributes = Collections.unmodifiableMap(attributes);
     17        this.attr = Collections.unmodifiableMap(attributes);
    1818        this.trackSegment = trackSegment;
    1919    }
     
    2121
    2222    public Map<String, Object> getAttributes() {
    23         return attributes;
     23        return attr;
    2424    }
    2525
Note: See TracChangeset for help on using the changeset viewer.