Changeset 24014 in osm for applications/editors/josm/plugins/FixAddresses/src/org
- Timestamp:
- 2010-11-02T12:04:32+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/AddressEditContainer.java
r23981 r24014 432 432 */ 433 433 private boolean assignAddressToStreet(AddressNode aNode) { 434 String streetName = aNode.getStreet ();434 String streetName = aNode.getStreetName(); 435 435 436 436 if (streetName != null && shadowStreetDict.containsKey(streetName)) { -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/AddressNode.java
r23982 r24014 47 47 * @return 48 48 */ 49 public String getStreet () {49 public String getStreetName() { 50 50 if (osmObject == null) return MISSING_TAG; 51 51 /* … … 202 202 cc = this.getCity().compareTo(other.getCity()); 203 203 if (cc == 0) { 204 cc = this.getStreet ().compareTo(other.getStreet());204 cc = this.getStreetName().compareTo(other.getStreetName()); 205 205 if (cc == 0) { 206 206 if (hasGuessedStreetName()) { 207 207 if (other.hasStreetName()) { 208 208 // Compare guessed name with the real name 209 cc = this.getGuessedStreetName().compareTo(other.getStreet ());209 cc = this.getGuessedStreetName().compareTo(other.getStreetName()); 210 210 if (cc == 0) { 211 211 cc = this.getHouseNumber().compareTo(other.getHouseNumber()); … … 237 237 if (node == null || !node.hasName()) return; 238 238 239 if (!node.getName().equals(getStreet ())) {239 if (!node.getName().equals(getStreetName())) { 240 240 setStreetName(node.getName()); 241 241 node.addAddress(this); … … 304 304 // DE 305 305 String guessed = node.getGuessedStreetName(); 306 String sName = node.getStreet ();306 String sName = node.getStreetName(); 307 307 if (!StringUtils.isNullOrEmpty(guessed) && MISSING_TAG.equals(sName)) { 308 308 sName = String.format("(%s)", guessed); -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/IncompleteAddressesTableModel.java
r23961 r24014 77 77 case 4: 78 78 if (!StringUtils.isNullOrEmpty(aNode.getGuessedStreetName()) && 79 AddressNode.MISSING_TAG.equals(aNode.getStreet ())) {79 AddressNode.MISSING_TAG.equals(aNode.getStreetName())) { 80 80 81 81 return "(" + aNode.getGuessedStreetName() + ")"; 82 82 } else { 83 return aNode.getStreet ();83 return aNode.getStreetName(); 84 84 } 85 85 default: -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/UnresolvedAddressesTableModel.java
r23961 r24014 103 103 case 0: 104 104 String guessed = aNode.getGuessedStreetName(); 105 String cur = aNode.getStreet ();105 String cur = aNode.getStreetName(); 106 106 if (aNode.hasGuessedStreetName() && AddressNode.MISSING_TAG.equals(cur)) { 107 107 return "*" + guessed; 108 108 } else { 109 return aNode.getStreet ();109 return aNode.getStreetName(); 110 110 } 111 111 case 1:
Note:
See TracChangeset
for help on using the changeset viewer.