Ignore:
Timestamp:
2021-09-13T00:41:53+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21319 - Refactoring of class hierarchy around JosmComboBox / AutoCompComboBox (patch by marcello):

  • Code reuse: JosmComboBox now uses a JosmTextField as editor
  • Code reuse: AutoCompComboBox now uses AutoCompTextField as editor
  • JosmComboBox uses more of the original L&F
  • JosmComboBox lists now expand all the way to the bottom or the top of the screen
  • Variable height items in combobox lists now work, see #19321
  • Autocomplete uses different algorithm, fix #21290
  • editable="false" comboboxes in Presets now work, fix #6157 see #11024 see #18714
  • The user may toggle LTR-RTL script in JosmTextField (menu and ctrl+space)
  • LTR-RTL automatically toggles according to key in AddTag and EditTag dialogs, fix #16163
File:
1 edited

Legend:

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

    r17648 r18221  
    1212
    1313import javax.swing.Box;
    14 import javax.swing.DefaultComboBoxModel;
    1514import javax.swing.DefaultListCellRenderer;
    1615import javax.swing.JLabel;
     
    2524import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    2625import org.openstreetmap.josm.gui.widgets.JosmComboBox;
     26import org.openstreetmap.josm.gui.widgets.JosmComboBoxModel;
    2727import org.openstreetmap.josm.spi.preferences.Config;
    2828import org.openstreetmap.josm.tools.GBC;
     
    8282    }
    8383
    84     private static class LanguageComboBoxModel extends DefaultComboBoxModel<Locale> {
     84    private static class LanguageComboBoxModel extends JosmComboBoxModel<Locale> {
    8585        private final List<Locale> data = new ArrayList<>();
    8686
Note: See TracChangeset for help on using the changeset viewer.