- Timestamp:
- 2020-03-04T20:57:37+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/tagging/presets/items
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Check.java
r15441 r16035 27 27 public class Check extends KeyedItem { 28 28 29 /** The localized version of {@link #text}. */30 public String locale_text; // NOSONAR31 29 /** the value to set when checked (default is "yes") */ 32 30 public String value_on = OsmUtils.TRUE_VALUE; // NOSONAR … … 54 52 def = "on".equals(default_) ? Boolean.TRUE : "off".equals(default_) ? Boolean.FALSE : null; 55 53 56 if (locale_text == null) { 57 locale_text = getLocaleText(text, text_context, null); 58 } 54 initializeLocaleText(null); 59 55 60 56 if (usage.values.size() < 2 && (oneValue == null || value_on.equals(oneValue) || value_off.equals(oneValue))) { -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java
r16034 r16035 48 48 private static final Renderer RENDERER = new Renderer(); 49 49 50 /** The localized version of {@link #text}. */51 public String locale_text; // NOSONAR52 50 /** 53 51 * A list of entries. … … 422 420 } 423 421 } 424 if (locale_text == null) { 425 locale_text = getLocaleText(text, text_context, null); 426 } 422 initializeLocaleText(null); 427 423 initialized = true; 428 424 } -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/KeyedItem.java
r15836 r16035 20 20 * Preset item associated to an OSM key. 21 21 */ 22 public abstract class KeyedItem extends T aggingPresetItem {22 public abstract class KeyedItem extends TextItem { 23 23 24 24 /** Translation of "<different>". Use in combo boxes to display an entry matching several different values. */ … … 32 32 /** This specifies the property key that will be modified by the item. */ 33 33 public String key; // NOSONAR 34 /** The text to display */35 public String text; // NOSONAR36 /** The context used for translating {@link #text} */37 public String text_context; // NOSONAR38 34 /** 39 35 * Allows to change the matching process, i.e., determining whether the tags of an OSM object fit into this preset. -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Text.java
r13597 r16035 40 40 private static int auto_increment_selected; // NOSONAR 41 41 42 /** The localized version of {@link #text}. */43 public String locale_text; // NOSONAR44 42 /** The default value for the item. If not specified, the current value of the key is chosen as default (if applicable). Defaults to "". */ 45 43 public String default_; // NOSONAR … … 115 113 originalValue = DIFFERENT; 116 114 } 117 if (locale_text == null) { 118 locale_text = getLocaleText(text, text_context, null); 119 } 115 initializeLocaleText(null); 120 116 121 117 // if there's an auto_increment setting, then wrap the text field
Note:
See TracChangeset
for help on using the changeset viewer.