Ignore:
Timestamp:
2006-09-24T11:15:39+02:00 (20 years ago)
Author:
imi
Message:
  • added External Tool support (no gui configuration yet)
  • applied patch for bug that Save action does not set filename (thanks Dean)
  • fixed case sensitiveness of search tool (now insensitive, like google)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/tools/SearchCompiler.java

    r102 r142  
    7878                        if (value == null)
    7979                                return notValue;
    80                         return (value.indexOf(this.value) != -1) != notValue;
     80                        return (value.toLowerCase().indexOf(this.value.toLowerCase()) != -1) != notValue;
    8181                }
    8282                @Override public String toString() {return key+"="+(notValue?"!":"")+value;}
     
    9090                                return s.equals("");
    9191                        for (Entry<String, String> e : osm.keys.entrySet())
    92                                 if (e.getKey().indexOf(s) != -1 || e.getValue().indexOf(s) != -1)
     92                                if (e.getKey().toLowerCase().indexOf(s.toLowerCase()) != -1
     93                                                || e.getValue().toLowerCase().indexOf(s.toLowerCase()) != -1)
    9394                                        return true;
    9495                        return false;
     
    111112                @Override public String toString() {return "type="+type;}
    112113        }
    113        
     114
    114115        private static class Modified extends Match {
    115116                @Override public boolean match(OsmPrimitive osm) {
Note: See TracChangeset for help on using the changeset viewer.