Ignore:
Timestamp:
2017-08-26T00:55:22+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - extract SearchMode and SearchSetting from actions.search.SearchAction to data.osm.search

File:
1 edited

Legend:

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

    r12656 r12659  
    7070import org.openstreetmap.josm.data.osm.Tag;
    7171import org.openstreetmap.josm.data.osm.search.SearchParseError;
     72import org.openstreetmap.josm.data.osm.search.SearchSetting;
    7273import org.openstreetmap.josm.data.osm.search.SearchCompiler;
    7374import org.openstreetmap.josm.data.preferences.BooleanProperty;
     
    130131            Collections.<String>emptyList());
    131132    public static final StringProperty PROPERTY_TAGS_TO_IGNORE = new StringProperty("properties.recent-tags.ignore",
    132             new SearchAction.SearchSetting().writeToString());
     133            new SearchSetting().writeToString());
    133134
    134135    /**
     
    163164
    164165    final RecentTagCollection recentTags = new RecentTagCollection(MAX_LRU_TAGS_NUMBER);
    165     SearchAction.SearchSetting tagsToIgnore;
     166    SearchSetting tagsToIgnore;
    166167
    167168    /**
     
    330331
    331332    void loadTagsToIgnore() {
    332         final SearchAction.SearchSetting searchSetting = Utils.firstNonNull(
    333                 SearchAction.SearchSetting.readFromString(PROPERTY_TAGS_TO_IGNORE.get()), new SearchAction.SearchSetting());
     333        final SearchSetting searchSetting = Utils.firstNonNull(
     334                SearchSetting.readFromString(PROPERTY_TAGS_TO_IGNORE.get()), new SearchSetting());
    334335        if (!Objects.equals(tagsToIgnore, searchSetting)) {
    335336            try {
     
    338339            } catch (SearchParseError parseError) {
    339340                warnAboutParseError(parseError);
    340                 tagsToIgnore = new SearchAction.SearchSetting();
     341                tagsToIgnore = new SearchSetting();
    341342                recentTags.setTagsToIgnore(SearchCompiler.Never.INSTANCE);
    342343            }
     
    10241025            @Override
    10251026            public void actionPerformed(ActionEvent e) {
    1026                 final SearchAction.SearchSetting newTagsToIngore = SearchAction.showSearchDialog(tagsToIgnore);
     1027                final SearchSetting newTagsToIngore = SearchAction.showSearchDialog(tagsToIgnore);
    10271028                if (newTagsToIngore == null) {
    10281029                    return;
Note: See TracChangeset for help on using the changeset viewer.