Changeset 23849 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-10-26T18:29:48+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/AddressEdit/src/org/openstreetmap/josm/plugins/addressEdit
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/AddressEdit/src/org/openstreetmap/josm/plugins/addressEdit/AddressEditContainer.java
r23835 r23849 204 204 return tags; 205 205 } 206 207 /** 208 * Gets the number of streets in the container. 209 * @return 210 */ 211 public int getNumberOfStreets() { 212 return streetDict != null ? streetDict.size() : 0; 213 } 214 215 /** 216 * Get the number of incomplete addresses. 217 * @return 218 */ 219 public int getNumberOfIncompleteAddresses() { 220 return incompleteAddresses != null ? incompleteAddresses.size() : 0; 221 } 222 223 /** 224 * Gets the number of unresolved addresses. 225 * @return 226 */ 227 public int getNumberOfUnresolvedAddresses() { 228 return unresolvedAddresses != null ? unresolvedAddresses.size() : 0; 229 } 206 230 207 231 /** -
applications/editors/josm/plugins/AddressEdit/src/org/openstreetmap/josm/plugins/addressEdit/gui/AddressEditSelectionEvent.java
r23834 r23849 86 86 int selRows = streetTable.getSelectedRow(); 87 87 88 if (selRows < 0 || selRows >= addressContainer.get StreetList().size()) {88 if (selRows < 0 || selRows >= addressContainer.getNumberOfStreets()) { 89 89 return null; 90 90 } … … 108 108 List<AddressNode> nodes = new ArrayList<AddressNode>(); 109 109 for (int i = 0; i < selRows.length; i++) { 110 if (i >= 0 && i < addressContainer.get IncompleteAddresses().size()) {110 if (i >= 0 && i < addressContainer.getNumberOfIncompleteAddresses()) { 111 111 nodes.add(addressContainer.getIncompleteAddresses().get(selRows[i])); 112 112 } … … 130 130 List<AddressNode> nodes = new ArrayList<AddressNode>(); 131 131 for (int i = 0; i < selRows.length; i++) { 132 if (i >= 0 && i < addressContainer.get UnresolvedAddresses().size()) {132 if (i >= 0 && i < addressContainer.getNumberOfUnresolvedAddresses()) { 133 133 nodes.add(addressContainer.getUnresolvedAddresses().get(selRows[i])); 134 134 } -
applications/editors/josm/plugins/AddressEdit/src/org/openstreetmap/josm/plugins/addressEdit/gui/IncompleteAddressesTableModel.java
r23848 r23849 54 54 return 0; 55 55 } 56 return addressContainer.get IncompleteAddresses().size();56 return addressContainer.getNumberOfIncompleteAddresses(); 57 57 } 58 58 … … 62 62 return null; 63 63 } 64 if (row < 0 || row > addressContainer.get IncompleteAddresses().size()) {64 if (row < 0 || row > addressContainer.getNumberOfIncompleteAddresses()) { 65 65 return null; 66 66 } -
applications/editors/josm/plugins/AddressEdit/src/org/openstreetmap/josm/plugins/addressEdit/gui/StreetTableModel.java
r23834 r23849 70 70 return 0; 71 71 } 72 return addressContainer.get StreetList().size();72 return addressContainer.getNumberOfStreets(); 73 73 } 74 74 … … 81 81 return null; 82 82 } 83 if (row < 0 || row > addressContainer.get StreetList().size()) {83 if (row < 0 || row > addressContainer.getNumberOfStreets()) { 84 84 return null; 85 85 } -
applications/editors/josm/plugins/AddressEdit/src/org/openstreetmap/josm/plugins/addressEdit/gui/UnresolvedAddressesTableModel.java
r23835 r23849 74 74 return 0; 75 75 } 76 return addressContainer.get UnresolvedAddresses().size();76 return addressContainer.getNumberOfUnresolvedAddresses(); 77 77 } 78 78 … … 82 82 return null; 83 83 } 84 if (row < 0 || row > addressContainer.get UnresolvedAddresses().size()) {84 if (row < 0 || row > addressContainer.getNumberOfUnresolvedAddresses()) { 85 85 return null; 86 86 }
Note:
See TracChangeset
for help on using the changeset viewer.