Changeset 10657 in josm for trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java
- Timestamp:
- 2016-07-27T02:08:34+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java
r10548 r10657 28 28 import org.openstreetmap.josm.tools.Shortcut; 29 29 import org.openstreetmap.josm.tools.UserCancelException; 30 import org.openstreetmap.josm.tools.Utils;31 30 32 31 public final class ReverseWayAction extends JosmAction { … … 135 134 @Override 136 135 protected void updateEnabledState(Collection<? extends OsmPrimitive> selection) { 137 setEnabled( Utils.exists(selection,OsmPrimitive.wayPredicate));136 setEnabled(selection.stream().anyMatch(OsmPrimitive.wayPredicate)); 138 137 } 139 138 }
Note:
See TracChangeset
for help on using the changeset viewer.