Changeset 17542 in osm for applications/editors/josm/plugins/routes
- Timestamp:
- 2009-09-09T00:07:47+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/routes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routes/build.xml
r17380 r17542 35 35 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 36 36 <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="20 12"/>37 <attribute name="Plugin-Mainversion" value="2082"/> 38 38 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 39 39 </manifest> -
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RelationEditMode.java
r16594 r17542 76 76 Relation r = (Relation)rel; 77 77 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) { 80 80 foundMember = member; 81 81 break; … … 87 87 } else { 88 88 Relation newRelation = new Relation(r); 89 newRelation. members.add(new RelationMember("", way));89 newRelation.getMembers().add(new RelationMember("", way)); 90 90 Main.main.undoRedo.add(new ChangeCommand(r, newRelation)); 91 91 } -
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java
r16683 r17542 85 85 86 86 private void addRelation(Relation relation, RouteDefinition route) { 87 for (RelationMember member:relation. members) {88 if (member. memberinstanceof 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(); 90 90 pathBuilder.addWay(way, route); 91 91 }
Note:
See TracChangeset
for help on using the changeset viewer.