- Timestamp:
- 2017-06-04T20:52:03+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r12279 r12314 209 209 if (ds == null) 210 210 return; 211 Collection<OsmPrimitive> selection = ds.getSelected(); 212 Set<Way> selectedWays = OsmPrimitive.getFilteredSet(selection, Way.class); 211 Collection<Way> selectedWays = ds.getSelectedWays(); 213 212 if (selectedWays.size() < 2) { 214 213 new Notification( -
trunk/src/org/openstreetmap/josm/actions/CopyCoordinatesAction.java
r12161 r12314 14 14 import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils; 15 15 import org.openstreetmap.josm.tools.Shortcut; 16 import org.openstreetmap.josm.tools.Utils;17 16 18 17 public class CopyCoordinatesAction extends JosmAction { … … 54 53 return Collections.emptyList(); 55 54 } else { 56 return Utils.filteredCollection(ds.getSelected(), Node.class);55 return ds.getSelectedNodes(); 57 56 } 58 57 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r12313 r12314 882 882 DataSet ds = getLayerManager().getEditDataSet(); 883 883 final Collection<OsmPrimitive> elementsToTest = new HashSet<>(ds.getSelected()); 884 for (Way osm : Utils.filteredCollection(ds.getSelected(), Way.class)) {884 for (Way osm : ds.getSelectedWays()) { 885 885 elementsToTest.addAll(osm.getNodes()); 886 886 }
Note:
See TracChangeset
for help on using the changeset viewer.