Changeset 12656 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2017-08-26T00:40:19+02:00 (7 years ago)
- 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 9 9 import java.util.List; 10 10 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;17 11 import org.openstreetmap.josm.data.osm.Node; 18 12 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 20 14 import org.openstreetmap.josm.data.osm.RelationMember; 21 15 import org.openstreetmap.josm.data.osm.Way; 16 import org.openstreetmap.josm.data.osm.search.SearchCompiler.And; 17 import org.openstreetmap.josm.data.osm.search.SearchCompiler.Child; 18 import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match; 19 import org.openstreetmap.josm.data.osm.search.SearchCompiler.Not; 20 import org.openstreetmap.josm.data.osm.search.SearchCompiler.Or; 21 import org.openstreetmap.josm.data.osm.search.SearchCompiler.Parent; 22 22 23 23 /** -
trunk/src/org/openstreetmap/josm/tools/template_engine/ParseError.java
r8540 r12656 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import org.openstreetmap.josm.data.osm.search.SearchParseError; 6 7 import org.openstreetmap.josm.tools.template_engine.Tokenizer.Token; 7 8 import org.openstreetmap.josm.tools.template_engine.Tokenizer.TokenType; … … 22 23 } 23 24 24 public ParseError(int position, org.openstreetmap.josm.actions.search.SearchCompiler.ParseError e) {25 public ParseError(int position, SearchParseError e) { 25 26 super(tr("Error while parsing search expression on position {0}", position), e); 26 27 unexpectedToken = null; -
trunk/src/org/openstreetmap/josm/tools/template_engine/SearchExpressionCondition.java
r10305 r12656 2 2 package org.openstreetmap.josm.tools.template_engine; 3 3 4 import org.openstreetmap.josm. actions.search.SearchCompiler.Match;4 import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match; 5 5 6 6 public class SearchExpressionCondition implements TemplateEntry { -
trunk/src/org/openstreetmap/josm/tools/template_engine/TemplateEngineDataProvider.java
r8510 r12656 4 4 import java.util.Collection; 5 5 6 import org.openstreetmap.josm. actions.search.SearchCompiler.Match;6 import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match; 7 7 8 8 public interface TemplateEngineDataProvider { -
trunk/src/org/openstreetmap/josm/tools/template_engine/TemplateParser.java
r11929 r12656 9 9 import java.util.List; 10 10 11 import org.openstreetmap.josm.actions.search.SearchCompiler; 12 import org.openstreetmap.josm.actions.search.SearchCompiler.Match; 11 import org.openstreetmap.josm.data.osm.search.SearchCompiler; 12 import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match; 13 import org.openstreetmap.josm.data.osm.search.SearchParseError; 13 14 import org.openstreetmap.josm.tools.template_engine.Tokenizer.Token; 14 15 import org.openstreetmap.josm.tools.template_engine.Tokenizer.TokenType; … … 102 103 result.getEntries().add(new SearchExpressionCondition( 103 104 SearchCompiler.compile(searchText), condition)); 104 } catch (Search Compiler.ParseError e) {105 } catch (SearchParseError e) { 105 106 throw new ParseError(searchExpression.getPosition(), e); 106 107 } … … 133 134 Match match = SearchCompiler.compile(searchText); 134 135 result = new ContextSwitchTemplate(match, template, searchExpression.getPosition()); 135 } catch (Search Compiler.ParseError e) {136 } catch (SearchParseError e) { 136 137 throw new ParseError(searchExpression.getPosition(), e); 137 138 }
Note:
See TracChangeset
for help on using the changeset viewer.