Changeset 3723 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2010-12-14T17:10:47+01:00 (14 years ago)
Author:
stoecker
Message:

default disable validator info warnings also for manual tests

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

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

    r3674 r3723  
    2525import org.openstreetmap.josm.data.validation.TestError;
    2626import org.openstreetmap.josm.data.validation.util.MultipleNameVisitor;
     27import org.openstreetmap.josm.gui.preferences.ValidatorPreference;
    2728import org.openstreetmap.josm.tools.MultiMap;
     29import org.openstreetmap.josm.Main;
    2830
    2931/**
     
    146148        }
    147149
     150        boolean other = Main.pref.getBoolean(ValidatorPreference.PREF_OTHER, false);
    148151        for (TestError e : errors) {
    149152            if (e.getIgnored()) {
     
    151154            }
    152155            Severity s = e.getSeverity();
     156            if(!other && s == Severity.OTHER) {
     157                continue;
     158            }
    153159            String d = e.getDescription();
    154160            String m = e.getMessage();
  • trunk/src/org/openstreetmap/josm/gui/preferences/ValidatorPreference.java

    r3671 r3723  
    5353    public static final String PREF_OTHER_UPLOAD = PREFIX + ".otherUpload";
    5454
     55    /** The preferences key for ignored severity other */
     56    public static final String PREF_OTHER = PREFIX + ".other";
     57
    5558    /**
    5659     * The preferences key for enabling the permanent filtering
     
    6265    private JCheckBox prefUseLayer;
    6366    private JCheckBox prefOtherUpload;
     67    private JCheckBox prefOther;
    6468
    6569    /** The list of all tests */
     
    7983        prefUseLayer.setToolTipText(tr("Use the error layer to display problematic elements."));
    8084        testPanel.add(prefUseLayer, GBC.eol());
     85
     86        prefOther = new JCheckBox(tr("Show informational level."), Main.pref.getBoolean(PREF_OTHER, false));
     87        prefOther.setToolTipText(tr("Show the informational tests."));
     88        testPanel.add(prefOther, GBC.eol());
    8189
    8290        prefOtherUpload = new JCheckBox(tr("Show informational level on upload."), Main.pref.getBoolean(PREF_OTHER_UPLOAD, false));
     
    126134        Main.pref.put(PREF_TESTS_BEFORE_UPLOAD, testsBeforeUpload.toString());
    127135        Main.pref.put(PREF_USE_IGNORE, prefUseIgnore.isSelected());
     136        Main.pref.put(PREF_OTHER, prefOther.isSelected());
    128137        Main.pref.put(PREF_OTHER_UPLOAD, prefOtherUpload.isSelected());
    129138        Main.pref.put(PREF_LAYER, prefUseLayer.isSelected());
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r3719 r3723  
    7979            {"lang-de", IN_CORE}, {"lang-en_GB", IN_CORE}, {"lang-fr", IN_CORE},
    8080            {"lang-it", IN_CORE}, {"lang-pl", IN_CORE}, {"lang-ro", IN_CORE},
    81             {"lang-ru", IN_CORE},
    82             {"ewmsplugin", tr("replaced by {0} plugin","wmsplugin")},
    83             {"ywms", tr("replaced by {0} plugin","wmsplugin")},
     81            {"lang-ru", IN_CORE}, {"ewmsplugin", IN_CORE}, {"ywms", IN_CORE},
    8482            {"tways-0.2", IN_CORE},
    8583            {"geotagged", IN_CORE},
Note: See TracChangeset for help on using the changeset viewer.