Changeset 1375 in josm


Ignore:
Timestamp:
2009-02-07T22:13:29+01:00 (16 years ago)
Author:
stoecker
Message:

fixed #2131. patch by singularita gmail com

Location:
trunk/src/org/openstreetmap/josm/actions/search
Files:
2 edited

Legend:

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

    r1291 r1375  
    9090                + "<li>"+tr("<b>selected</b> - all selected objects")+"</li>"
    9191                + "<li>"+tr("<b>incomplete</b> - all incomplete objects")+"</li>"
     92                + "<li>"+tr("<b>untagged</b> - all untagged objects")+"</li>"
    9293                + "<li>"+tr("Use <b>|</b> or <b>OR</b> to combine with logical or")+"</li>"
    9394                + "<li>"+tr("Use <b>\"</b> to quote operators (e.g. if key contains :)")+"</li>"
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r1213 r1375  
    293293    }
    294294
     295    private static class Untagged extends Match {
     296        @Override public boolean match(OsmPrimitive osm) {
     297            return !osm.tagged;
     298        }
     299        @Override public String toString() {return "untagged";}
     300    }
     301
    295302    public static class ParseError extends Exception {
    296303        public ParseError(String msg) {
     
    376383        } else if (tok.equals("incomplete")) {
    377384            return new Incomplete();
     385        } else if (tok.equals("untagged")) {
     386            return new Untagged();
    378387        } else if (tok.equals("selected")) {
    379388            return new Selected();
Note: See TracChangeset for help on using the changeset viewer.