Changeset 17651 in josm for trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java
- Timestamp:
- 2021-03-23T23:31:56+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java
r17643 r17651 52 52 import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match; 53 53 import org.openstreetmap.josm.data.osm.search.SearchParseError; 54 import org.openstreetmap.josm.data.preferences.BooleanProperty; 54 55 import org.openstreetmap.josm.gui.ExtendedDialog; 55 56 import org.openstreetmap.josm.gui.MainApplication; … … 67 68 import org.openstreetmap.josm.gui.tagging.presets.items.Space; 68 69 import org.openstreetmap.josm.gui.util.GuiHelper; 69 import org.openstreetmap.josm.spi.preferences.Config;70 70 import org.openstreetmap.josm.tools.GBC; 71 71 import org.openstreetmap.josm.tools.ImageProvider; … … 100 100 101 101 /** 102 * Defines whether the validator should be active in the preset dialog 103 * @see TaggingPresetValidation 104 */ 105 public static final BooleanProperty USE_VALIDATOR = new BooleanProperty("taggingpreset.validator", false); 106 107 /** 102 108 * The preset group this preset belongs to. 103 109 */ … … 228 234 } 229 235 File arch = TaggingPresetReader.getZipIcons(); 230 final Collection<String> s = Config.getPref().getList("taggingpreset.icon.sources", null);236 final Collection<String> s = TaggingPresets.ICON_SOURCES.get(); 231 237 this.iconFuture = new CompletableFuture<>(); 232 238 new ImageProvider(iconName) … … 359 365 } 360 366 361 if (selected.size() == 1 && Config.getPref().getBoolean("taggingpreset.validator", false)) {367 if (selected.size() == 1 && USE_VALIDATOR.get()) { 362 368 itemGuiSupport.addListener((source, key, newValue) -> 363 369 TaggingPresetValidation.validateAsync(selected.iterator().next(), validationLabel, getChangedTags()));
Note:
See TracChangeset
for help on using the changeset viewer.