Changeset 9876 in osm for applications/editors/josm/plugins/lakewalker/src/org/openstreetmap
- Timestamp:
- 2008-08-15T18:55:35+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/DoubleConfigurer.java
r5979 r9876 19 19 package org.openstreetmap.josm.plugins.lakewalker; 20 20 21 import java.text.DecimalFormat;22 23 21 /** 24 22 * A Configurer for Double values … … 26 24 public class DoubleConfigurer extends StringConfigurer { 27 25 28 final static DecimalFormat df = new DecimalFormat("#0.0##########");29 30 26 public DoubleConfigurer() { 31 27 super(); … … 37 33 38 34 public DoubleConfigurer(String key, String name, Double val) { 39 super(key, name, val == null ? null : df.format(val));35 super(key, name, val == null ? null : val.toString()); 40 36 } 41 37 … … 50 46 if (d != null) { 51 47 setValue(d); 52 }53 if (!noUpdate &&nameField!= null) {54 nameField.setText(df.format(d));48 if (!noUpdate && nameField != null) { 49 nameField.setText(d.toString()); 50 } 55 51 } 56 52 } … … 58 54 public String getValueString() { 59 55 if (value == null || value.equals("")) { 60 return (String) value;56 return null; 61 57 } 62 return df.format(value);58 return value.toString(); 63 59 } 64 60 }
Note:
See TracChangeset
for help on using the changeset viewer.