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

Location:
trunk/src/org/openstreetmap/josm/tools/template_engine
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/template_engine/ContextSwitchTemplate.java

    r11974 r12656  
    99import java.util.List;
    1010
    11 import org.openstreetmap.josm.actions.search.SearchCompiler.And;
    12 import org.openstreetmap.josm.actions.search.SearchCompiler.Child;
    13 import org.openstreetmap.josm.actions.search.SearchCompiler.Match;
    14 import org.openstreetmap.josm.actions.search.SearchCompiler.Not;
    15 import org.openstreetmap.josm.actions.search.SearchCompiler.Or;
    16 import org.openstreetmap.josm.actions.search.SearchCompiler.Parent;
    1711import org.openstreetmap.josm.data.osm.Node;
    1812import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    2014import org.openstreetmap.josm.data.osm.RelationMember;
    2115import org.openstreetmap.josm.data.osm.Way;
     16import org.openstreetmap.josm.data.osm.search.SearchCompiler.And;
     17import org.openstreetmap.josm.data.osm.search.SearchCompiler.Child;
     18import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match;
     19import org.openstreetmap.josm.data.osm.search.SearchCompiler.Not;
     20import org.openstreetmap.josm.data.osm.search.SearchCompiler.Or;
     21import org.openstreetmap.josm.data.osm.search.SearchCompiler.Parent;
    2222
    2323/**
  • trunk/src/org/openstreetmap/josm/tools/template_engine/ParseError.java

    r8540 r12656  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
     6import org.openstreetmap.josm.data.osm.search.SearchParseError;
    67import org.openstreetmap.josm.tools.template_engine.Tokenizer.Token;
    78import org.openstreetmap.josm.tools.template_engine.Tokenizer.TokenType;
     
    2223    }
    2324
    24     public ParseError(int position, org.openstreetmap.josm.actions.search.SearchCompiler.ParseError e) {
     25    public ParseError(int position, SearchParseError e) {
    2526        super(tr("Error while parsing search expression on position {0}", position), e);
    2627        unexpectedToken = null;
  • trunk/src/org/openstreetmap/josm/tools/template_engine/SearchExpressionCondition.java

    r10305 r12656  
    22package org.openstreetmap.josm.tools.template_engine;
    33
    4 import org.openstreetmap.josm.actions.search.SearchCompiler.Match;
     4import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match;
    55
    66public class SearchExpressionCondition implements TemplateEntry {
  • trunk/src/org/openstreetmap/josm/tools/template_engine/TemplateEngineDataProvider.java

    r8510 r12656  
    44import java.util.Collection;
    55
    6 import org.openstreetmap.josm.actions.search.SearchCompiler.Match;
     6import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match;
    77
    88public interface TemplateEngineDataProvider {
  • 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.