Changeset 10880 in josm for trunk/src/org/openstreetmap/josm/gui/preferences
- Timestamp:
- 2016-08-23T22:07:06+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/preferences/validator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/validator/ValidatorPreference.java
r8378 r10880 40 40 41 41 /** The preferences key for error layer */ 42 public static final String PREF_LAYER = PREFIX + ".layer";42 public static final BooleanProperty PREF_LAYER = new BooleanProperty(PREFIX + ".layer", true); 43 43 44 44 /** The preferences key for enabled tests */ … … 46 46 47 47 /** The preferences key for enabled tests */ 48 public static final String PREF_USE_IGNORE = PREFIX + ".ignore";48 public static final BooleanProperty PREF_USE_IGNORE = new BooleanProperty(PREFIX + ".ignore", true); 49 49 50 50 /** The preferences key for enabled tests before upload*/ … … 52 52 53 53 /** The preferences key for ignored severity other on upload */ 54 public static final String PREF_OTHER_UPLOAD = PREFIX + ".otherUpload";54 public static final BooleanProperty PREF_OTHER_UPLOAD = new BooleanProperty(PREFIX + ".otherUpload", false); 55 55 56 56 /** The preferences for ignored severity other */ -
trunk/src/org/openstreetmap/josm/gui/preferences/validator/ValidatorTestsPreference.java
r10611 r10880 58 58 testPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 59 59 60 prefUseIgnore = new JCheckBox(tr("Use ignore list."), Main.pref.getBoolean(ValidatorPreference.PREF_USE_IGNORE, true));60 prefUseIgnore = new JCheckBox(tr("Use ignore list."), ValidatorPreference.PREF_USE_IGNORE.get()); 61 61 prefUseIgnore.setToolTipText(tr("Use the ignore list to suppress warnings.")); 62 62 testPanel.add(prefUseIgnore, GBC.eol()); 63 63 64 prefUseLayer = new JCheckBox(tr("Use error layer."), Main.pref.getBoolean(ValidatorPreference.PREF_LAYER, true));64 prefUseLayer = new JCheckBox(tr("Use error layer."), ValidatorPreference.PREF_LAYER.get()); 65 65 prefUseLayer.setToolTipText(tr("Use the error layer to display problematic elements.")); 66 66 testPanel.add(prefUseLayer, GBC.eol()); … … 71 71 72 72 prefOtherUpload = new JCheckBox(tr("Show informational level on upload."), 73 Main.pref.getBoolean(ValidatorPreference.PREF_OTHER_UPLOAD, false));73 ValidatorPreference.PREF_OTHER_UPLOAD.get()); 74 74 prefOtherUpload.setToolTipText(tr("Show the informational tests in the upload check windows.")); 75 75 testPanel.add(prefOtherUpload, GBC.eol()); … … 117 117 Main.pref.putCollection(ValidatorPreference.PREF_SKIP_TESTS, tests); 118 118 Main.pref.putCollection(ValidatorPreference.PREF_SKIP_TESTS_BEFORE_UPLOAD, testsBeforeUpload); 119 Main.pref.put(ValidatorPreference.PREF_USE_IGNORE,prefUseIgnore.isSelected());119 ValidatorPreference.PREF_USE_IGNORE.put(prefUseIgnore.isSelected()); 120 120 ValidatorPreference.PREF_OTHER.put(prefOther.isSelected()); 121 Main.pref.put(ValidatorPreference.PREF_OTHER_UPLOAD,prefOtherUpload.isSelected());122 Main.pref.put(ValidatorPreference.PREF_LAYER,prefUseLayer.isSelected());121 ValidatorPreference.PREF_OTHER_UPLOAD.put(prefOtherUpload.isSelected()); 122 ValidatorPreference.PREF_LAYER.put(prefUseLayer.isSelected()); 123 123 return false; 124 124 }
Note:
See TracChangeset
for help on using the changeset viewer.