Changeset 10658 in josm for trunk/src/org/openstreetmap/josm/actions/search
- Timestamp:
- 2016-07-27T02:16:37+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r10601 r10658 26 26 import java.util.Objects; 27 27 import java.util.Set; 28 import java.util.function.Predicate; 28 29 29 30 import javax.swing.ButtonGroup; … … 54 55 import org.openstreetmap.josm.gui.widgets.HistoryComboBox; 55 56 import org.openstreetmap.josm.tools.GBC; 56 import org.openstreetmap.josm.tools.Predicate;57 57 import org.openstreetmap.josm.tools.Shortcut; 58 58 import org.openstreetmap.josm.tools.Utils; … … 689 689 ++foundMatches; 690 690 } 691 } else if (setting.mode == SearchMode.add && !predicate. evaluate(osm) && matcher.match(osm)) {691 } else if (setting.mode == SearchMode.add && !predicate.test(osm) && matcher.match(osm)) { 692 692 selection.add(osm); 693 693 ++foundMatches; 694 } else if (setting.mode == SearchMode.remove && predicate. evaluate(osm) && matcher.match(osm)) {694 } else if (setting.mode == SearchMode.remove && predicate.test(osm) && matcher.match(osm)) { 695 695 selection.remove(osm); 696 696 ++foundMatches; 697 } else if (setting.mode == SearchMode.in_selection && predicate. evaluate(osm) && !matcher.match(osm)) {697 } else if (setting.mode == SearchMode.in_selection && predicate.test(osm) && !matcher.match(osm)) { 698 698 selection.remove(osm); 699 699 --foundMatches;
Note:
See TracChangeset
for help on using the changeset viewer.