|
Last change
on this file was 17314, checked in by Don-vip, 6 years ago |
|
see #7548 - make clear which preferences settings allow new tabs from plugins. Make color preferences extensible. Hide tab area if a single tab is defined.
|
-
Property svn:eol-style
set to
native
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 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 org.openstreetmap.josm.gui.help.HelpUtil;
|
|---|
| 7 | import org.openstreetmap.josm.gui.preferences.ExtensibleTabPreferenceSetting;
|
|---|
| 8 | import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
|
|---|
| 9 | import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory;
|
|---|
| 10 |
|
|---|
| 11 | /**
|
|---|
| 12 | * Preference settings for the validator.
|
|---|
| 13 | *
|
|---|
| 14 | * @author frsantos
|
|---|
| 15 | */
|
|---|
| 16 | public final class ValidatorPreference extends ExtensibleTabPreferenceSetting {
|
|---|
| 17 |
|
|---|
| 18 | /**
|
|---|
| 19 | * Factory used to create a new {@code ValidatorPreference}.
|
|---|
| 20 | */
|
|---|
| 21 | public static class Factory implements PreferenceSettingFactory {
|
|---|
| 22 | @Override
|
|---|
| 23 | public PreferenceSetting createPreferenceSetting() {
|
|---|
| 24 | return new ValidatorPreference();
|
|---|
| 25 | }
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 | private ValidatorPreference() {
|
|---|
| 29 | super(/* ICON(preferences/) */ "validator", tr("Data validator"),
|
|---|
| 30 | tr("An OSM data validator that checks for common errors made by users and editor programs."), false);
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | @Override
|
|---|
| 34 | public boolean ok() {
|
|---|
| 35 | return false;
|
|---|
| 36 | }
|
|---|
| 37 |
|
|---|
| 38 | @Override
|
|---|
| 39 | public String getHelpContext() {
|
|---|
| 40 | return HelpUtil.ht("/Preferences/Validator");
|
|---|
| 41 | }
|
|---|
| 42 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.