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/globalsat
Files:
2 edited

Legend:

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

    r27852 r29222  
    3232    <property name="commit.message" value="Changed constructor signature of plugin main class"/>
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    34     <property name="plugin.main.version" value="4980"/>
     34    <property name="plugin.main.version" value="5681"/>
     35    <!--
     36      ************************************************
     37      ** should not be necessary to change the following properties
     38     -->
    3539    <property name="josm" location="../../core/dist/josm-custom.jar"/>
    3640    <property name="plugin.dist.dir" value="../../dist"/>
  • applications/editors/josm/plugins/globalsat/src/org/openstreetmap/josm/plugins/globalsat/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    }
    2020
    21 
    2221    public Map<String, Object> getAttributes() {
    23         return attributes;
     22        return attr;
    2423    }
    2524
Note: See TracChangeset for help on using the changeset viewer.