Changeset 12656 in josm for trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
- Timestamp:
- 2017-08-26T00:40:19+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r12620 r12656 21 21 22 22 import 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;23 import org.openstreetmap.josm.data.osm.search.SearchParseError; 24 import org.openstreetmap.josm.data.osm.search.SearchCompiler; 25 import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match; 26 26 import org.openstreetmap.josm.data.osm.visitor.Visitor; 27 27 import org.openstreetmap.josm.gui.mappaint.StyleCache; … … 761 761 try { 762 762 return SearchCompiler.compile(Main.pref.get(prefName, defaultValue)); 763 } catch ( ParseError e) {763 } catch (SearchParseError e) { 764 764 Logging.log(Logging.LEVEL_ERROR, "Unable to compile pattern for " + prefName + ", trying default pattern:", e); 765 765 } … … 767 767 try { 768 768 return SearchCompiler.compile(defaultValue); 769 } catch ( ParseError e2) {769 } catch (SearchParseError e2) { 770 770 throw new AssertionError("Unable to compile default pattern for direction keys: " + e2.getMessage(), e2); 771 771 }
Note:
See TracChangeset
for help on using the changeset viewer.