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/gui/dialogs
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java

    r12643 r12656  
    4141import org.openstreetmap.josm.actions.relation.SelectMembersAction;
    4242import org.openstreetmap.josm.actions.relation.SelectRelationAction;
    43 import org.openstreetmap.josm.actions.search.SearchCompiler;
    4443import org.openstreetmap.josm.data.osm.DataSet;
    4544import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    5049import org.openstreetmap.josm.data.osm.event.DatasetEventManager;
    5150import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode;
     51import org.openstreetmap.josm.data.osm.search.SearchCompiler;
    5252import org.openstreetmap.josm.data.osm.event.NodeMovedEvent;
    5353import org.openstreetmap.josm.data.osm.event.PrimitivesAddedEvent;
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r12641 r12656  
    6161import org.openstreetmap.josm.actions.relation.SelectRelationAction;
    6262import org.openstreetmap.josm.actions.search.SearchAction.SearchSetting;
    63 import org.openstreetmap.josm.actions.search.SearchCompiler;
    6463import org.openstreetmap.josm.command.ChangeCommand;
    6564import org.openstreetmap.josm.command.ChangePropertyCommand;
     
    7877import org.openstreetmap.josm.data.osm.event.DatasetEventManager;
    7978import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode;
     79import org.openstreetmap.josm.data.osm.search.SearchCompiler;
    8080import org.openstreetmap.josm.data.osm.event.SelectionEventManager;
    8181import org.openstreetmap.josm.data.preferences.StringProperty;
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/RecentTagCollection.java

    r12615 r12656  
    99
    1010import org.openstreetmap.josm.actions.search.SearchAction;
    11 import org.openstreetmap.josm.actions.search.SearchCompiler;
    1211import org.openstreetmap.josm.data.osm.Tag;
     12import org.openstreetmap.josm.data.osm.search.SearchParseError;
     13import org.openstreetmap.josm.data.osm.search.SearchCompiler;
    1314import org.openstreetmap.josm.data.preferences.CollectionProperty;
    1415
     
    8182    }
    8283
    83     public void setTagsToIgnore(SearchAction.SearchSetting tagsToIgnore) throws SearchCompiler.ParseError {
     84    public void setTagsToIgnore(SearchAction.SearchSetting tagsToIgnore) throws SearchParseError {
    8485        setTagsToIgnore(tagsToIgnore.text.isEmpty() ? SearchCompiler.Never.INSTANCE : SearchCompiler.compile(tagsToIgnore));
    8586    }
    8687
    87     public SearchAction.SearchSetting ignoreTag(Tag tagToIgnore, SearchAction.SearchSetting settingToUpdate) throws SearchCompiler.ParseError {
     88    public SearchAction.SearchSetting ignoreTag(Tag tagToIgnore, SearchAction.SearchSetting settingToUpdate) throws SearchParseError {
    8889        final String forTag = SearchCompiler.buildSearchStringForTag(tagToIgnore.getKey(), tagToIgnore.getValue());
    8990        settingToUpdate.text = settingToUpdate.text.isEmpty()
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/SearchBasedRowFilter.java

    r9536 r12656  
    55import javax.swing.table.TableModel;
    66
    7 import org.openstreetmap.josm.actions.search.SearchCompiler;
    87import org.openstreetmap.josm.data.osm.Tag;
     8import org.openstreetmap.josm.data.osm.search.SearchCompiler;
    99
    1010/**
    1111 * A {@link RowFilter} implementation which matches tags w.r.t. the specified filter's
    12  * {@link org.openstreetmap.josm.actions.search.SearchCompiler.Match#match(org.openstreetmap.josm.data.osm.Tagged)} method.
     12 * {@link org.openstreetmap.josm.data.osm.search.SearchCompiler.Match#match(org.openstreetmap.josm.data.osm.Tagged)} method.
    1313 *
    1414 * <p>An {@link javax.swing.RowFilter.Entry}'s column 0 is considered as key, and column 1 is considered as value.</p>
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r12641 r12656  
    6464import org.openstreetmap.josm.actions.JosmAction;
    6565import org.openstreetmap.josm.actions.search.SearchAction;
    66 import org.openstreetmap.josm.actions.search.SearchCompiler;
    6766import org.openstreetmap.josm.command.ChangePropertyCommand;
    6867import org.openstreetmap.josm.command.Command;
     
    7069import org.openstreetmap.josm.data.osm.OsmPrimitive;
    7170import org.openstreetmap.josm.data.osm.Tag;
     71import org.openstreetmap.josm.data.osm.search.SearchParseError;
     72import org.openstreetmap.josm.data.osm.search.SearchCompiler;
    7273import org.openstreetmap.josm.data.preferences.BooleanProperty;
    7374import org.openstreetmap.josm.data.preferences.CollectionProperty;
     
    335336                tagsToIgnore = searchSetting;
    336337                recentTags.setTagsToIgnore(tagsToIgnore);
    337             } catch (SearchCompiler.ParseError parseError) {
     338            } catch (SearchParseError parseError) {
    338339                warnAboutParseError(parseError);
    339340                tagsToIgnore = new SearchAction.SearchSetting();
     
    343344    }
    344345
    345     private static void warnAboutParseError(SearchCompiler.ParseError parseError) {
     346    private static void warnAboutParseError(SearchParseError parseError) {
    346347        Logging.warn(parseError);
    347348        JOptionPane.showMessageDialog(
     
    10091010                        PROPERTY_TAGS_TO_IGNORE.put(tagsToIgnore.writeToString());
    10101011                    }
    1011                 } catch (SearchCompiler.ParseError parseError) {
     1012                } catch (SearchParseError parseError) {
    10121013                    throw new IllegalStateException(parseError);
    10131014                }
     
    10311032                    recentTags.setTagsToIgnore(tagsToIgnore);
    10321033                    PROPERTY_TAGS_TO_IGNORE.put(tagsToIgnore.writeToString());
    1033                 } catch (SearchCompiler.ParseError parseError) {
     1034                } catch (SearchParseError parseError) {
    10341035                    warnAboutParseError(parseError);
    10351036                }
Note: See TracChangeset for help on using the changeset viewer.