Changeset 2791 in josm for trunk


Ignore:
Timestamp:
2010-01-09T17:00:32+01:00 (10 years ago)
Author:
jttt
Message:

Make search pattern matchers that match all/nothing public

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r2711 r2791  
    6060    }
    6161
    62     private static class Always extends Match {
     62    public static class Always extends Match {
    6363        @Override public boolean match(OsmPrimitive osm) {
    6464            return true;
     65        }
     66    }
     67
     68    public static class Never extends Match {
     69        @Override
     70        public boolean match(OsmPrimitive osm) {
     71            return false;
    6572        }
    6673    }
Note: See TracChangeset for help on using the changeset viewer.