Changeset 5997 in josm for trunk/src


Ignore:
Timestamp:
2013-06-08T14:26:14+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8737 - Presets: add length attribute for combos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r5964 r5997  
    947947        public boolean editable = true;
    948948        protected JosmComboBox combo;
     949        public String length;
    949950
    950951        public Combo() {
     
    973974            AutoCompletingTextField tf = new AutoCompletingTextField();
    974975            initAutoCompletionField(tf, key);
     976            if (length != null && !length.isEmpty()) {
     977                tf.setMaxChars(new Integer(length));
     978            }
    975979            AutoCompletionList acList = tf.getAutoCompletionList();
    976980            if (acList != null) {
Note: See TracChangeset for help on using the changeset viewer.