Changeset 1997 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-08-25T22:45:57+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r1937 r1997 290 290 String as = h.get(a); 291 291 if (as == null) { 292 as = a.getName() ;292 as = a.getName() != null ? a.getName() : Long.toString(a.id); 293 293 h.put(a, as); 294 294 } 295 295 String bs = h.get(b); 296 296 if (bs == null) { 297 bs = b.getName() ;297 bs = b.getName() != null ? b.getName() : Long.toString(b.id); 298 298 h.put(b, bs); 299 299 } -
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r1990 r1997 111 111 return formatter.format(this); 112 112 } 113 114 @Override115 public String getName() {116 String name = super.getName();117 if (name != null)118 return name;119 // no translation120 return "node " + id;121 }122 123 @Override124 public String getLocalName(){125 String name = super.getLocalName();126 if (name != null)127 return name;128 return tr("node {0}",id);129 }130 113 } -
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r1990 r1997 193 193 194 194 @Override 195 public String getName() {196 String name = super.getName();197 if (name != null)198 return name;199 // no translation200 return "relation " + id;201 }202 203 @Override204 public String getLocalName(){205 String name = super.getLocalName();206 if (name != null)207 return name;208 return tr("relation {0}",id);209 }210 211 @Override212 195 public String getDisplayName(NameFormatter formatter) { 213 196 return formatter.format(this); -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r1990 r1997 237 237 238 238 @Override 239 public String getName() {240 String name = super.getName();241 if (name != null)242 return name;243 // no translation244 return "way " + id;245 }246 247 @Override248 public String getLocalName(){249 String name = super.getLocalName();250 if (name != null)251 return name;252 return tr("way {0}",id);253 }254 255 @Override256 239 public String getDisplayName(NameFormatter formatter) { 257 240 return formatter.format(this); -
trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java
r1990 r1997 167 167 nameTag = relation.getName(); 168 168 } 169 } else { 170 nameTag = relation.get(n); 169 171 } 170 172 if (nameTag != null) { … … 172 174 } 173 175 } 174 if (nameTag != null) { 176 if (nameTag == null) { 177 name += Long.toString(relation.id) + ", "; 178 } else { 175 179 name += "\"" + nameTag + "\", "; 176 180 }
Note:
See TracChangeset
for help on using the changeset viewer.