Ignore:
Timestamp:
2020-11-16T16:45:58+01:00 (3 years ago)
Author:
Don-vip
Message:

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.

File:
1 edited

Legend:

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

    r13431 r17314  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    6 import javax.swing.JTabbedPane;
    7 
    86import org.openstreetmap.josm.gui.help.HelpUtil;
    9 import org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting;
     7import org.openstreetmap.josm.gui.preferences.ExtensibleTabPreferenceSetting;
    108import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
    119import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory;
    12 import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    13 import org.openstreetmap.josm.tools.GBC;
    1410
    1511/**
     
    1814 * @author frsantos
    1915 */
    20 public final class ValidatorPreference extends DefaultTabPreferenceSetting {
     16public final class ValidatorPreference extends ExtensibleTabPreferenceSetting {
    2117
    2218    /**
     
    3228    private ValidatorPreference() {
    3329        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));
     30                tr("An OSM data validator that checks for common errors made by users and editor programs."), false);
    4131    }
    4232
Note: See TracChangeset for help on using the changeset viewer.