Changeset 28762 in osm for applications/editors
- Timestamp:
- 2012-10-02T23:40:49+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/AssociatedStreetFixer.java
r28710 r28762 27 27 for (RelationMember m : rel.getMembers()) { 28 28 if (m.getType().equals(OsmPrimitiveType.NODE) && !"house".equals(m.getRole())) { 29 setWarningMessage(tr("Node without ' house' role found"));29 setWarningMessage(tr("Node without ''house'' role found")); 30 30 return false; 31 31 } 32 32 if (m.getType().equals(OsmPrimitiveType.WAY) && !("house".equals(m.getRole()) || "street".equals(m.getRole()))) { 33 setWarningMessage(tr("Way without ' house' or 'street' role found"));33 setWarningMessage(tr("Way without ''house'' or ''street'' role found")); 34 34 return false; 35 35 } 36 36 if (m.getType().equals(OsmPrimitiveType.RELATION) && !"house".equals(m.getRole())) { 37 setWarningMessage(tr("Relation without ' house' role found"));37 setWarningMessage(tr("Relation without ''house'' role found")); 38 38 return false; 39 39 } -
applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/BoundaryFixer.java
r28720 r28762 34 34 for( RelationMember m : rel.getMembers() ) { 35 35 if (m.getType().equals(OsmPrimitiveType.RELATION) && !"subarea".equals(m.getRole())) { 36 setWarningMessage(tr("Relation without ' subarea' role found"));36 setWarningMessage(tr("Relation without ''subarea'' role found")); 37 37 return false; 38 38 } 39 39 if (m.getType().equals(OsmPrimitiveType.NODE) && !("label".equals(m.getRole()) || "admin_centre".equals(m.getRole()))) { 40 setWarningMessage(tr("Node without ' label' or 'admin_centre' role found"));40 setWarningMessage(tr("Node without ''label'' or ''admin_centre'' role found")); 41 41 return false; 42 42 } 43 43 if (m.getType().equals(OsmPrimitiveType.WAY) && !("outer".equals(m.getRole()) || "inner".equals(m.getRole()))) { 44 setWarningMessage(tr("Way without ' inner' or 'outer' role found"));44 setWarningMessage(tr("Way without ''inner'' or ''outer'' role found")); 45 45 return false; 46 46 } -
applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/MultipolygonFixer.java
r28703 r28762 35 35 for (RelationMember m : rel.getMembers()) 36 36 if (m.getType().equals(OsmPrimitiveType.WAY) && !("outer".equals(m.getRole()) || "inner".equals(m.getRole()))) { 37 setWarningMessage(tr("Way without ' inner' or 'outer' role found"));37 setWarningMessage(tr("Way without ''inner'' or ''outer'' role found")); 38 38 return false; 39 39 }
Note:
See TracChangeset
for help on using the changeset viewer.