Changeset 24147 in osm for applications/editors/josm/plugins/FixAddresses
- Timestamp:
- 2010-11-07T21:34:20+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/actions/GuessAddressDataAction.java
r24134 r24147 44 44 @Override 45 45 public void updateEnabledState(AddressEditSelectionEvent ev) { 46 setEnabled(ev != null && ev. getUnresolvedAddressTable() != null);46 setEnabled(ev != null && ev.hasAddresses()); 47 47 } 48 48 … … 52 52 @Override 53 53 protected void updateEnabledState(AddressEditContainer container) { 54 setEnabled(container != null && container.getNumberOfIn completeAddresses() > 0);54 setEnabled(container != null && container.getNumberOfInvalidAddresses() > 0); 55 55 } 56 56 … … 60 60 @Override 61 61 public void addressEditActionPerformed(AddressEditContainer container) { 62 if (container == null) return; 63 if (container.getNumberOfUnresolvedAddresses() == 0) return; 64 62 if (container == null || container.getNumberOfInvalidAddresses() == 0) return; 63 65 64 internalGuessAddresses(container.getAllAddressesToFix()); 66 65 }
Note:
See TracChangeset
for help on using the changeset viewer.