Ignore:
Timestamp:
2012-02-17T22:27:06+01:00 (12 years ago)
Author:
Don-vip
Message:

fix #7386 - Major rework of preferences GUI settings in order to speed up preferences dialog startup time. The building of each preferences tab is delayed until this tab is selected. Plugins that use preferences will need to make some (minor) changes.

File:
1 edited

Legend:

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

    r4913 r4968  
    3232import org.openstreetmap.josm.gui.help.HelpUtil;
    3333import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane.ValidationListener;
     34import org.openstreetmap.josm.gui.preferences.map.MapPreference;
    3435import org.openstreetmap.josm.tools.GBC;
    3536import org.openstreetmap.josm.tools.ImageProvider;
     
    167168
    168169    public void selectMapPaintPreferenceTab() {
    169         tpPreferences.setSelectedComponent(tpPreferences.map);
    170         tpPreferences.mapcontent.setSelectedIndex(1);
     170        tpPreferences.selectTabByPref(MapPreference.class);
     171        tpPreferences.getMapPreference().mapcontent.setSelectedIndex(1);
    171172    }
    172173}
Note: See TracChangeset for help on using the changeset viewer.