Changeset 4880 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-01-31T11:42:42+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreference.java
r4874 r4880 83 83 } 84 84 85 public Setting getDefaultValue() { 86 return defaultValue; 87 } 88 85 89 public void setValue(Setting value) { 86 90 this.value = value; … … 259 263 label.setFont(label.getFont().deriveFont(Font.BOLD)); 260 264 } 261 //label.setToolTipText("..."); TODO 265 val = pe.getDefaultValue().getValue(); 266 if(val != null) 267 { 268 if(pe.isDefault()) { 269 label.setToolTipText(tr("Current value is default.")); 270 } else { 271 label.setToolTipText(tr("Default value is ''{0}''.", val)); 272 } 273 } else { 274 label.setToolTipText(tr("Default value currently unknown (setting has not been used yet).")); 275 } 262 276 return label; 263 277 }
Note:
See TracChangeset
for help on using the changeset viewer.