001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.gui.preferences.validator;
003
004import static org.openstreetmap.josm.tools.I18n.tr;
005
006import org.openstreetmap.josm.gui.help.HelpUtil;
007import org.openstreetmap.josm.gui.preferences.ExtensibleTabPreferenceSetting;
008import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
009import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory;
010
011/**
012 * Preference settings for the validator.
013 *
014 * @author frsantos
015 */
016public final class ValidatorPreference extends ExtensibleTabPreferenceSetting {
017
018    /**
019     * Factory used to create a new {@code ValidatorPreference}.
020     */
021    public static class Factory implements PreferenceSettingFactory {
022        @Override
023        public PreferenceSetting createPreferenceSetting() {
024            return new ValidatorPreference();
025        }
026    }
027
028    private ValidatorPreference() {
029        super(/* ICON(preferences/) */ "validator", tr("Data validator"),
030                tr("An OSM data validator that checks for common errors made by users and editor programs."), false);
031    }
032
033    @Override
034    public boolean ok() {
035        return false;
036    }
037
038    @Override
039    public String getHelpContext() {
040        return HelpUtil.ht("/Preferences/Validator");
041    }
042}