Changeset 23922 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-10-30T17:58:45+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/AddressEdit/src/org/openstreetmap/josm/plugins/addressEdit/gui/ApplyAllGuessesAction.java
r23921 r23922 17 17 18 18 import java.awt.event.ActionEvent; 19 import java.util.ArrayList; 19 20 import java.util.List; 20 21 … … 26 27 27 28 public ApplyAllGuessesAction() { 28 super(tr("Apply all guesses"), "applyguesses_24", "Turns all guesses into the corresponding tag values."); 29 //super(tr("Apply all guesses"), "applyguesses_24", "Turns all guesses into the corresponding tag values."); 30 super(tr("Apply all guesses"), null, "Turns all guesses into the corresponding tag values."); 29 31 } 30 32 31 33 @Override 32 34 public void addressEditActionPerformed(AddressEditSelectionEvent ev) { 35 if (ev == null || ev.getSelectedUnresolvedAddresses() == null) return; 33 36 // fix SELECTED items only 34 37 List<AddressNode> addrToFix = ev.getSelectedUnresolvedAddresses(); … … 53 56 54 57 private void applyGuesses(List<AddressNode> addrToFix) { 55 for (AddressNode aNode : addrToFix) { 58 List<AddressNode> addrToFixShadow = new ArrayList<AddressNode>(addrToFix); 59 for (AddressNode aNode : addrToFixShadow) { 56 60 aNode.applyAllGuesses(); 57 61 }
Note:
See TracChangeset
for help on using the changeset viewer.