Ignore:
Timestamp:
2014-01-05T19:32:00+01:00 (10 years ago)
Author:
simon04
Message:

see #9414 - MapCSS validator: skip tests with informational severity if that isn't enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/validator/ValidatorPreference.java

    r6593 r6636  
    1616
    1717import org.openstreetmap.josm.Main;
     18import org.openstreetmap.josm.data.preferences.BooleanProperty;
    1819import org.openstreetmap.josm.data.validation.OsmValidator;
    1920import org.openstreetmap.josm.data.validation.Test;
     
    6465    public static final String PREF_OTHER_UPLOAD = PREFIX + ".otherUpload";
    6566
    66     /** The preferences key for ignored severity other */
    67     public static final String PREF_OTHER = PREFIX + ".other";
     67    /** The preferences for ignored severity other */
     68    public static final BooleanProperty PREF_OTHER = new BooleanProperty(PREFIX + ".other", false);
    6869
    6970    /**
     
    9596        testPanel.add(prefUseLayer, GBC.eol());
    9697
    97         prefOther = new JCheckBox(tr("Show informational level."), Main.pref.getBoolean(PREF_OTHER, false));
     98        prefOther = new JCheckBox(tr("Show informational level."), PREF_OTHER.get());
    9899        prefOther.setToolTipText(tr("Show the informational tests."));
    99100        testPanel.add(prefOther, GBC.eol());
     
    143144        Main.pref.putCollection(PREF_SKIP_TESTS_BEFORE_UPLOAD, testsBeforeUpload);
    144145        Main.pref.put(PREF_USE_IGNORE, prefUseIgnore.isSelected());
    145         Main.pref.put(PREF_OTHER, prefOther.isSelected());
     146        PREF_OTHER.put(prefOther.isSelected());
    146147        Main.pref.put(PREF_OTHER_UPLOAD, prefOtherUpload.isSelected());
    147148        Main.pref.put(PREF_LAYER, prefUseLayer.isSelected());
Note: See TracChangeset for help on using the changeset viewer.