Changeset 9876 in osm
- Timestamp:
- 2008-08-15T18:55:35+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/lakewalker
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/lakewalker/build.xml
r7287 r9876 1 <project name=" Lakewalker" default="dist" basedir=".">1 <project name="lakewalker" default="dist" basedir="."> 2 2 3 3 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) --> … … 46 46 47 47 <target name="dist" depends="compile"> 48 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 49 <env key="LANG" value="C"/> 50 <arg value="info"/> 51 <arg value="--xml"/> 52 <arg value="."/> 53 </exec> 54 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 55 <delete file="REVISION"/> 48 56 <jar destfile="${plugin.jar}" basedir="build"> 49 57 <manifest> 50 58 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerPlugin" /> 51 59 <attribute name="Plugin-Description" value="Interface to Lakewalker module" /> 52 <attribute name="Plugin-Version" value="0.2"/> 60 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 61 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 53 62 <attribute name="Author" value="Brent Easton <b.easton@uws.edu.au>, Jason Reid <jrreid@ucalgary.ca>"/> 54 63 <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerApp"/> 55 64 </manifest> 56 65 </jar> -
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.