Changeset 6246 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
- Timestamp:
- 2013-09-22T18:36:07+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r6113 r6246 38 38 import java.util.List; 39 39 import java.util.Map; 40 import java.util.Vector;41 40 42 41 import javax.swing.AbstractAction; … … 374 373 } 375 374 } 376 Collection<Command> commands =new Vector<Command>();375 Collection<Command> commands = new ArrayList<Command>(); 377 376 commands.add(new ChangePropertyCommand(sel, key, null)); 378 377 if (value.equals(tr("<different>"))) { 379 HashMap<String, Vector<OsmPrimitive>> map=new HashMap<String, Vector<OsmPrimitive>>();378 Map<String, ArrayList<OsmPrimitive>> map = new HashMap<String, ArrayList<OsmPrimitive>>(); 380 379 for (OsmPrimitive osm: sel) { 381 String val=osm.get(key); 382 if(val != null) 383 { 380 String val = osm.get(key); 381 if (val != null) { 384 382 if (map.containsKey(val)) { 385 383 map.get(val).add(osm); 386 384 } else { 387 Vector<OsmPrimitive> v = new Vector<OsmPrimitive>();385 ArrayList<OsmPrimitive> v = new ArrayList<OsmPrimitive>(); 388 386 v.add(osm); 389 387 map.put(val, v); … … 391 389 } 392 390 } 393 for (Map.Entry<String, Vector<OsmPrimitive>> e: map.entrySet()) {391 for (Map.Entry<String, ArrayList<OsmPrimitive>> e: map.entrySet()) { 394 392 commands.add(new ChangePropertyCommand(e.getValue(), newkey, e.getKey())); 395 393 }
Note:
See TracChangeset
for help on using the changeset viewer.