- Timestamp:
- 2021-03-20T12:24:12+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/tagging
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TagCellEditor.java
r12384 r17595 105 105 } else if (column == 1) { 106 106 107 if (currentTag.getValueCount() == 0) {107 if (currentTag.getValueCount() > 1) { 108 108 editor.setText(""); 109 } else if (currentTag.getValueCount() == 1) {110 editor.setText(currentTag.getValues().get(0));111 109 } else { 112 editor.setText( "");110 editor.setText(currentTag.getValue()); 113 111 } 114 112 initAutoCompletionListForValues(currentTag.getName()); -
trunk/src/org/openstreetmap/josm/gui/tagging/TagCellRenderer.java
r11386 r17595 52 52 */ 53 53 protected void renderTagValue(TagModel tag) { 54 if (tag.getValueCount() == 0) { 55 setText(""); 56 } else if (tag.getValueCount() == 1) { 57 setText(tag.getValues().get(0)); 58 } else if (tag.getValueCount() > 1) { 54 if (tag.getValueCount() > 1) { 59 55 setText(tr("multiple")); 60 56 setFont(fontItalic); 57 } else { 58 setText(tag.getValue()); 61 59 } 62 60 } -
trunk/src/org/openstreetmap/josm/gui/tagging/TagModel.java
r17318 r17595 126 126 return values.get(0); 127 127 } else { 128 StringBuilder sb = new StringBuilder(); 129 for (int i = 0; i < values.size(); i++) { 130 sb.append(values.get(i)); 131 if (i + 1 < values.size()) { 132 sb.append(';'); 133 } 134 } 135 return sb.toString(); 128 return String.join(";", values); 136 129 } 137 130 }
Note:
See TracChangeset
for help on using the changeset viewer.