Ignore:
Timestamp:
2017-08-26T00:40:19+02:00 (9 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/tools/template_engine/TemplateParser.java

    r11929 r12656  
    99import java.util.List;
    1010
    11 import org.openstreetmap.josm.actions.search.SearchCompiler;
    12 import org.openstreetmap.josm.actions.search.SearchCompiler.Match;
     11import org.openstreetmap.josm.data.osm.search.SearchCompiler;
     12import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match;
     13import org.openstreetmap.josm.data.osm.search.SearchParseError;
    1314import org.openstreetmap.josm.tools.template_engine.Tokenizer.Token;
    1415import org.openstreetmap.josm.tools.template_engine.Tokenizer.TokenType;
     
    102103                    result.getEntries().add(new SearchExpressionCondition(
    103104                            SearchCompiler.compile(searchText), condition));
    104                 } catch (SearchCompiler.ParseError e) {
     105                } catch (SearchParseError e) {
    105106                    throw new ParseError(searchExpression.getPosition(), e);
    106107                }
     
    133134                Match match = SearchCompiler.compile(searchText);
    134135                result = new ContextSwitchTemplate(match, template, searchExpression.getPosition());
    135             } catch (SearchCompiler.ParseError e) {
     136            } catch (SearchParseError e) {
    136137                throw new ParseError(searchExpression.getPosition(), e);
    137138            }
Note: See TracChangeset for help on using the changeset viewer.