- Timestamp:
- 2010-05-24T23:36:44+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r3273 r3279 224 224 public String text_context; 225 225 public String locale_text; 226 public String value_on = OsmUtils.trueval; 227 public String value_off = OsmUtils.falseval; 226 228 public boolean default_ = false; // only used for tagless objects 227 229 public boolean use_last_as_default = false; … … 249 251 oneValue = s; 250 252 } 251 if (usage.values.size() < 2 && (oneValue == null || OsmUtils.trueval.equals(oneValue) || OsmUtils.falseval.equals(oneValue))) {253 if (usage.values.size() < 2 && (oneValue == null || value_on.equals(oneValue) || value_off.equals(oneValue))) { 252 254 if(def) 253 255 { … … 260 262 // all selected objects share the same value which is either true or false or unset, 261 263 // we can display a standard check box. 262 initialState = OsmUtils.trueval.equals(oneValue) ?264 initialState = value_on.equals(oneValue) ? 263 265 QuadStateCheckBox.State.SELECTED : 264 OsmUtils.falseval.equals(oneValue) ?266 value_off.equals(oneValue) ? 265 267 QuadStateCheckBox.State.NOT_SELECTED : 266 268 def ? QuadStateCheckBox.State.SELECTED … … 294 296 // otherwise change things according to the selected value. 295 297 cmds.add(new ChangePropertyCommand(sel, key, 296 check.getState() == QuadStateCheckBox.State.SELECTED ? OsmUtils.trueval:297 check.getState() == QuadStateCheckBox.State.NOT_SELECTED ? OsmUtils.falseval:298 check.getState() == QuadStateCheckBox.State.SELECTED ? value_on : 299 check.getState() == QuadStateCheckBox.State.NOT_SELECTED ? value_off : 298 300 null)); 299 301 }
Note:
See TracChangeset
for help on using the changeset viewer.