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/FilterMatcher.java

    r12630 r12656  
    77
    88import org.openstreetmap.josm.actions.search.SearchAction.SearchMode;
    9 import org.openstreetmap.josm.actions.search.SearchCompiler;
    10 import org.openstreetmap.josm.actions.search.SearchCompiler.Match;
    11 import org.openstreetmap.josm.actions.search.SearchCompiler.Not;
    12 import org.openstreetmap.josm.actions.search.SearchCompiler.ParseError;
     9import org.openstreetmap.josm.data.osm.search.SearchParseError;
     10import org.openstreetmap.josm.data.osm.search.SearchCompiler;
     11import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match;
     12import org.openstreetmap.josm.data.osm.search.SearchCompiler.Not;
    1313import org.openstreetmap.josm.gui.MainApplication;
    1414import org.openstreetmap.josm.gui.MapFrame;
     
    7979        private final boolean isInverted;
    8080
    81         FilterInfo(Filter filter) throws ParseError {
     81        FilterInfo(Filter filter) throws SearchParseError {
    8282            if (filter.mode == SearchMode.remove || filter.mode == SearchMode.in_selection) {
    8383                isDelete = true;
     
    9898     * Clears the current filters, and adds the given filters
    9999     * @param filters the filters to add
    100      * @throws ParseError if the search expression in one of the filters cannot be parsed
    101      */
    102     public void update(Collection<Filter> filters) throws ParseError {
     100     * @throws SearchParseError if the search expression in one of the filters cannot be parsed
     101     */
     102    public void update(Collection<Filter> filters) throws SearchParseError {
    103103        reset();
    104104        for (Filter filter : filters) {
     
    118118     * Adds a filter to the currently used filters
    119119     * @param filter the filter to add
    120      * @throws ParseError if the search expression in the filter cannot be parsed
    121      */
    122     public void add(final Filter filter) throws ParseError {
     120     * @throws SearchParseError if the search expression in the filter cannot be parsed
     121     */
     122    public void add(final Filter filter) throws SearchParseError {
    123123        if (!filter.enable) {
    124124            return;
     
    330330     * @param filters filters to add to the resulting filter matcher
    331331     * @return a new {@code FilterMatcher} containing the given filters
    332      * @throws ParseError if the search expression in a filter cannot be parsed
     332     * @throws SearchParseError if the search expression in a filter cannot be parsed
    333333     * @since 12383
    334334     */
    335     public static FilterMatcher of(Filter... filters) throws ParseError {
     335    public static FilterMatcher of(Filter... filters) throws SearchParseError {
    336336        FilterMatcher result = new FilterMatcher();
    337337        for (Filter filter : filters) {
Note: See TracChangeset for help on using the changeset viewer.