Changeset 14634 in josm


Ignore:
Timestamp:
2019-01-04T21:41:53+01:00 (2 months ago)
Author:
simon04
Message:

fix #17170 - Migrate TagInfoExtract.groovy to Java

Location:
trunk
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreference.java

    r14153 r14634  
    182182    }
    183183
    184     static class TaggingPresetSourceEditor extends SourceEditor {
     184    public static class TaggingPresetSourceEditor extends SourceEditor {
    185185
    186186        private static final String ICONPREF = "taggingpreset.icon.sources";
    187187
    188         TaggingPresetSourceEditor() {
     188        public TaggingPresetSourceEditor() {
    189189            super(SourceType.TAGGING_PRESET, Config.getUrls().getJOSMWebsite()+"/presets", presetSourceProviders, true);
    190190        }
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/KeyedItem.java

    r13220 r14634  
    163163        }
    164164        return returnValue;
     165    }
     166
     167    /**
     168     * Determines whether key or key+value are required.
     169     * @return whether key or key+value are required
     170     */
     171    public boolean isKeyRequired() {
     172        final MatchType type = MatchType.ofString(match);
     173        return MatchType.KEY_REQUIRED.equals(type) || MatchType.KEY_VALUE_REQUIRED.equals(type);
    165174    }
    166175
Note: See TracChangeset for help on using the changeset viewer.