Changeset 261 in josm
- Timestamp:
- 2007-06-20T23:29:26+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/data/osm/visitor/NameVisitor.java
r214 r261 74 74 /** 75 75 * If the way has a name-key or id-key, this is displayed. If not, (x nodes) 76 * is displayed with x be eing the number of nodes in the way.76 * is displayed with x being the number of nodes in the way. 77 77 */ 78 78 public void visit(Way w) { 79 79 name = w.get("name"); 80 if (name == null) name = w.get("ref"); 80 81 if (name == null) { 81 82 AllNodesVisitor.getAllNodes(w.segments); … … 87 88 } 88 89 } 89 name = trn("{0} node", "{0} nodes", nodes.size(), nodes.size()); 90 String what = (w.get("highway") != null) ? "highway " : (w.get("railway") != null) ? "railway " : (w.get("waterway") != null) ? "waterway " : ""; 91 name = what + trn("{0} node", "{0} nodes", nodes.size(), nodes.size()); 90 92 } 91 93 if (w.isIncomplete())
Note:
See TracChangeset
for help on using the changeset viewer.