Ignore:
Timestamp:
2017-08-26T00:40:19+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - move SearchCompiler from actions.search to data.osm.search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r12620 r12656  
    2121
    2222import org.openstreetmap.josm.Main;
    23 import org.openstreetmap.josm.actions.search.SearchCompiler;
    24 import org.openstreetmap.josm.actions.search.SearchCompiler.Match;
    25 import org.openstreetmap.josm.actions.search.SearchCompiler.ParseError;
     23import org.openstreetmap.josm.data.osm.search.SearchParseError;
     24import org.openstreetmap.josm.data.osm.search.SearchCompiler;
     25import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match;
    2626import org.openstreetmap.josm.data.osm.visitor.Visitor;
    2727import org.openstreetmap.josm.gui.mappaint.StyleCache;
     
    761761        try {
    762762            return SearchCompiler.compile(Main.pref.get(prefName, defaultValue));
    763         } catch (ParseError e) {
     763        } catch (SearchParseError e) {
    764764            Logging.log(Logging.LEVEL_ERROR, "Unable to compile pattern for " + prefName + ", trying default pattern:", e);
    765765        }
     
    767767        try {
    768768            return SearchCompiler.compile(defaultValue);
    769         } catch (ParseError e2) {
     769        } catch (SearchParseError e2) {
    770770            throw new AssertionError("Unable to compile default pattern for direction keys: " + e2.getMessage(), e2);
    771771        }
Note: See TracChangeset for help on using the changeset viewer.