Changeset 6246 in josm for trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetItems.java
- Timestamp:
- 2013-09-22T18:36:07+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetItems.java
r6231 r6246 204 204 String cstring; 205 205 if(count > 0 && !required) { 206 cstring = "0,"+ String.valueOf(count);206 cstring = "0,"+count; 207 207 } else if(count > 0) { 208 208 cstring = String.valueOf(count); … … 1010 1010 } 1011 1011 1012 protected String getDisplayIfNull( String display) {1013 return display;1012 protected String getDisplayIfNull() { 1013 return null; 1014 1014 } 1015 1015 … … 1020 1020 String value = null; 1021 1021 if (display == null) { 1022 display = getDisplayIfNull( display);1022 display = getDisplayIfNull(); 1023 1023 } 1024 1024 … … 1208 1208 1209 1209 @Override 1210 protected String getDisplayIfNull( String display) {1210 protected String getDisplayIfNull() { 1211 1211 if (combo.isEditable()) 1212 1212 return combo.getEditor().getItem().toString(); 1213 1213 else 1214 return display; 1215 1214 return null; 1216 1215 } 1217 1216 }
Note:
See TracChangeset
for help on using the changeset viewer.