org.openstreetmap.josm.gui.preferences
Class ValidatorPreference

java.lang.Object
  extended by org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
      extended by org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
          extended by org.openstreetmap.josm.gui.preferences.ValidatorPreference
All Implemented Interfaces:
PreferenceSetting, TabPreferenceSetting

public class ValidatorPreference
extends DefaultTabPreferenceSetting

Preference settings for the validator


Nested Class Summary
static class ValidatorPreference.Factory
           
 
Field Summary
private  java.util.Collection<Test> allTests
          The list of all tests
static java.lang.String PREF_FILTER_BY_SELECTION
          The preferences key for enabling the permanent filtering of the displayed errors in the tree regarding the current selection
static java.lang.String PREF_LAYER
          The preferences key for error layer
static java.lang.String PREF_OTHER
          The preferences key for ignored severity other
static java.lang.String PREF_OTHER_UPLOAD
          The preferences key for ignored severity other on upload
static java.lang.String PREF_TESTS
          The preferences key for enabled tests
static java.lang.String PREF_TESTS_BEFORE_UPLOAD
          The preferences key for enabled tests before upload
static java.lang.String PREF_USE_IGNORE
          The preferences key for enabled tests
static java.lang.String PREFIX
          The preferences prefix
private  javax.swing.JCheckBox prefOther
           
private  javax.swing.JCheckBox prefOtherUpload
           
private  javax.swing.JCheckBox prefUseIgnore
           
private  javax.swing.JCheckBox prefUseLayer
           
 
Constructor Summary
private ValidatorPreference()
           
 
Method Summary
 void addGui(PreferenceTabbedPane gui)
          Add the GUI elements to the dialog.
 boolean ok()
          Called when OK is pressed to save the setting in the preferences file.
 
Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
createPreferenceTabWithScrollPane, getDescription, getIconName, getTitle, getTooltip
 
Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
isExpert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openstreetmap.josm.gui.preferences.PreferenceSetting
isExpert
 

Field Detail

PREFIX

public static final java.lang.String PREFIX
The preferences prefix

See Also:
Constant Field Values

PREF_LAYER

public static final java.lang.String PREF_LAYER
The preferences key for error layer

See Also:
Constant Field Values

PREF_TESTS

public static final java.lang.String PREF_TESTS
The preferences key for enabled tests

See Also:
Constant Field Values

PREF_USE_IGNORE

public static final java.lang.String PREF_USE_IGNORE
The preferences key for enabled tests

See Also:
Constant Field Values

PREF_TESTS_BEFORE_UPLOAD

public static final java.lang.String PREF_TESTS_BEFORE_UPLOAD
The preferences key for enabled tests before upload

See Also:
Constant Field Values

PREF_OTHER_UPLOAD

public static final java.lang.String PREF_OTHER_UPLOAD
The preferences key for ignored severity other on upload

See Also:
Constant Field Values

PREF_OTHER

public static final java.lang.String PREF_OTHER
The preferences key for ignored severity other

See Also:
Constant Field Values

PREF_FILTER_BY_SELECTION

public static final java.lang.String PREF_FILTER_BY_SELECTION
The preferences key for enabling the permanent filtering of the displayed errors in the tree regarding the current selection

See Also:
Constant Field Values

prefUseIgnore

private javax.swing.JCheckBox prefUseIgnore

prefUseLayer

private javax.swing.JCheckBox prefUseLayer

prefOtherUpload

private javax.swing.JCheckBox prefOtherUpload

prefOther

private javax.swing.JCheckBox prefOther

allTests

private java.util.Collection<Test> allTests
The list of all tests

Constructor Detail

ValidatorPreference

private ValidatorPreference()
Method Detail

addGui

public void addGui(PreferenceTabbedPane gui)
Description copied from interface: PreferenceSetting
Add the GUI elements to the dialog. The elements should be initialized after the current preferences.


ok

public boolean ok()
Description copied from interface: PreferenceSetting
Called when OK is pressed to save the setting in the preferences file. Return true when restart is required.



JOSM