Changeset 7589 in josm for trunk/src/org


Ignore:
Timestamp:
2014-09-30T21:31:49+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #10575 - new advanced boolean preference taggingpreset.display-keys-as-hint to display/hide OSM keys in preset UI

File:
1 edited

Legend:

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

    r7532 r7589  
    627627                initAutoCompletionField(textField, key);
    628628            }
    629             textField.setHint(key);
     629            if (Main.pref.getBoolean("taggingpreset.display-keys-as-hint", true)) {
     630                textField.setHint(key);
     631            }
    630632            if (length != null && !length.isEmpty()) {
    631633                textField.setMaxChars(Integer.valueOf(length));
     
    12571259            AutoCompletingTextField tf = new AutoCompletingTextField();
    12581260            initAutoCompletionField(tf, key);
    1259             tf.setHint(key);
     1261            if (Main.pref.getBoolean("taggingpreset.display-keys-as-hint", true)) {
     1262                tf.setHint(key);
     1263            }
    12601264            if (length != null && !length.isEmpty()) {
    12611265                tf.setMaxChars(Integer.valueOf(length));
Note: See TracChangeset for help on using the changeset viewer.