Ignore:
Timestamp:
2012-02-17T22:27:06+01:00 (14 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/ToolbarPreferences.java

    r4613 r4968  
    410410    }
    411411
    412     public class Settings implements PreferenceSetting {
     412    public class Settings extends DefaultTabPreferenceSetting {
    413413
    414414        private final class Move implements ActionListener {
     
    497497
    498498        public Settings(DefaultMutableTreeNode rootActionsNode) {
     499            super("toolbar", tr("Toolbar customization"), tr("Customize the elements on the toolbar."));
    499500            actionsTreeModel = new DefaultTreeModel(rootActionsNode);
    500501            actionsTree = new JTree(actionsTreeModel);
     
    766767            actionParametersPanel.setVisible(false);
    767768
    768             JPanel panel = gui.createPreferenceTab("toolbar", tr("Toolbar customization"),
    769                     tr("Customize the elements on the toolbar."), false);
     769            JPanel panel = gui.createPreferenceTab(this);
    770770            panel.add(p, GBC.eol().fill(GBC.BOTH));
    771771            panel.add(actionParametersPanel, GBC.eol().fill(GBC.HORIZONTAL));
Note: See TracChangeset for help on using the changeset viewer.