Ignore:
Timestamp:
2016-08-03T15:30:04+02:00 (8 years ago)
Author:
simon04
Message:

see #11390, see #12890 - Deprecate predicates in OsmPrimitive class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r10463 r10716  
    391391        updateKeyModifiers(e);
    392392
    393         selectedNode = Main.map.mapView.getNearestNode(e.getPoint(), OsmPrimitive.isSelectablePredicate);
    394         selectedSegment = Main.map.mapView.getNearestWaySegment(e.getPoint(), OsmPrimitive.isSelectablePredicate);
     393        selectedNode = Main.map.mapView.getNearestNode(e.getPoint(), OsmPrimitive::isSelectable);
     394        selectedSegment = Main.map.mapView.getNearestWaySegment(e.getPoint(), OsmPrimitive::isSelectable);
    395395
    396396        // If nothing gets caught, stay in select mode
     
    570570    private static void addNewNode(MouseEvent e) {
    571571        // Should maybe do the same as in DrawAction and fetch all nearby segments?
    572         WaySegment ws = Main.map.mapView.getNearestWaySegment(e.getPoint(), OsmPrimitive.isSelectablePredicate);
     572        WaySegment ws = Main.map.mapView.getNearestWaySegment(e.getPoint(), OsmPrimitive::isSelectable);
    573573        if (ws != null) {
    574574            Node n = new Node(Main.map.mapView.getLatLon(e.getX(), e.getY()));
Note: See TracChangeset for help on using the changeset viewer.