1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.preferences.validator;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import javax.swing.JTabbedPane;
|
---|
7 |
|
---|
8 | import org.openstreetmap.josm.gui.help.HelpUtil;
|
---|
9 | import org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting;
|
---|
10 | import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
|
---|
11 | import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory;
|
---|
12 | import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
|
---|
13 | import org.openstreetmap.josm.tools.GBC;
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Preference settings for the validator.
|
---|
17 | *
|
---|
18 | * @author frsantos
|
---|
19 | */
|
---|
20 | public final class ValidatorPreference extends DefaultTabPreferenceSetting {
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * Factory used to create a new {@code ValidatorPreference}.
|
---|
24 | */
|
---|
25 | public static class Factory implements PreferenceSettingFactory {
|
---|
26 | @Override
|
---|
27 | public PreferenceSetting createPreferenceSetting() {
|
---|
28 | return new ValidatorPreference();
|
---|
29 | }
|
---|
30 | }
|
---|
31 |
|
---|
32 | private ValidatorPreference() {
|
---|
33 | super(/* ICON(preferences/) */ "validator", tr("Data validator"),
|
---|
34 | tr("An OSM data validator that checks for common errors made by users and editor programs."),
|
---|
35 | false, new JTabbedPane());
|
---|
36 | }
|
---|
37 |
|
---|
38 | @Override
|
---|
39 | public void addGui(PreferenceTabbedPane gui) {
|
---|
40 | gui.createPreferenceTab(this).add(getTabPane(), GBC.eol().fill(GBC.BOTH));
|
---|
41 | }
|
---|
42 |
|
---|
43 | @Override
|
---|
44 | public boolean ok() {
|
---|
45 | return false;
|
---|
46 | }
|
---|
47 |
|
---|
48 | @Override
|
---|
49 | public String getHelpContext() {
|
---|
50 | return HelpUtil.ht("/Preferences/Validator");
|
---|
51 | }
|
---|
52 | }
|
---|