Changeset 4347 in josm


Ignore:
Timestamp:
2011-08-26T22:36:26+02:00 (13 years ago)
Author:
stoecker
Message:

see #3345 - patch by simon04 - add search for new objects

File:
1 edited

Legend:

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

    r4346 r4347  
    576576        protected String getCountString() {
    577577            return "tags";
     578        }
     579    }
     580
     581    private static class New extends Match {
     582        @Override public boolean match(OsmPrimitive osm) {
     583            return osm.isNew();
     584        }
     585        @Override public String toString() {
     586            return "new";
    578587        }
    579588    }
     
    770779            } else if (tokenizer.readIfEqual(Token.QUESTION_MARK))
    771780                return new BooleanMatch(key, false);
     781            else if ("new".equals(key))
     782                return new New();
    772783            else if ("modified".equals(key))
    773784                return new Modified();
Note: See TracChangeset for help on using the changeset viewer.