Changeset 34793 in osm
- Timestamp:
 - 2018-12-28T17:40:37+01:00 (7 years ago)
 - File:
 - 
      
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/TagBufferAction.java
r34782 r34793 8 8 import java.util.ArrayList; 9 9 import java.util.Collection; 10 import java.util.HashSet;11 10 import java.util.List; 12 import java.util.Set;13 11 14 12 import org.openstreetmap.josm.actions.JosmAction; … … 31 29 private static final String TITLE = tr("Copy tags from previous selection"); 32 30 private static final TagCollection EmptyTags = new TagCollection(); 33 private final Set<OsmPrimitive> selectionBuf = newHashSet<>();31 private List<OsmPrimitive> selectionBuf = new ArrayList<>(); 34 32 private TagCollection tagsToPaste = EmptyTags; 35 33 /** … … 72 70 if (getLayerManager().getEditDataSet() == null) { 73 71 setEnabled(false); 74 selectionBuf .clear();72 selectionBuf = new ArrayList<>(); 75 73 tagsToPaste = EmptyTags; 76 74 } else … … 84 82 tagsToPaste = new TagCollection(oldTags); 85 83 } 86 selectionBuf.clear(); 87 selectionBuf.addAll(selection); 88 84 selectionBuf = new ArrayList<>(selection); 89 85 setEnabled(!selection.isEmpty() && !tagsToPaste.isEmpty()); 90 86 } … … 94 90 * @param selection the selection 95 91 */ 96 private static TagCollection getCommonTags( Set<OsmPrimitive> selection) {92 private static TagCollection getCommonTags(List<OsmPrimitive> selection) { 97 93 if (selection.isEmpty()) 98 94 return EmptyTags;  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  