Ignore:
Timestamp:
2009-09-09T00:07:47+02:00 (15 years ago)
Author:
guggis
Message:

Updating to JOSM r2082

Location:
applications/editors/josm/plugins/routes
Files:
3 edited

Legend:

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

    r17380 r17542  
    3535                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    3636                <attribute name="Plugin-Description" value="Renders routes (bus, hiking trails, bicycle routes, ..). Route types must be defined in routes.xml file in plugin directory"/>
    37                 <attribute name="Plugin-Mainversion" value="2012"/>
     37                <attribute name="Plugin-Mainversion" value="2082"/>
    3838                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3939            </manifest>
  • applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RelationEditMode.java

    r16594 r17542  
    7676                        Relation r = (Relation)rel;
    7777                        RelationMember foundMember = null;
    78                         for (RelationMember member:r.members) {
    79                                 if (member.member == way) {
     78                        for (RelationMember member:r.getMembers()) {
     79                                if (member.getMember() == way) {
    8080                                        foundMember = member;
    8181                                        break;
     
    8787                        } else {
    8888                                Relation newRelation = new Relation(r);
    89                                 newRelation.members.add(new RelationMember("", way));
     89                                newRelation.getMembers().add(new RelationMember("", way));
    9090                    Main.main.undoRedo.add(new ChangeCommand(r, newRelation));
    9191                        }
  • applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java

    r16683 r17542  
    8585
    8686        private void addRelation(Relation relation, RouteDefinition route) {
    87                 for (RelationMember member:relation.members) {
    88                         if (member.member instanceof Way) {
    89                                 Way way = (Way)member.member;
     87                for (RelationMember member:relation.getMembers()) {
     88                        if (member.getMember() instanceof Way) {
     89                                Way way = (Way)member.getMember();
    9090                                pathBuilder.addWay(way, route);
    9191                        }
Note: See TracChangeset for help on using the changeset viewer.