Changeset 9876 in osm for applications/editors


Ignore:
Timestamp:
2008-08-15T18:55:35+02:00 (16 years ago)
Author:
stoecker
Message:

close locale bug

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=".">
    22
    33  <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
     
    4646
    4747  <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"/>
    4856    <jar destfile="${plugin.jar}" basedir="build">
    4957      <manifest>
    5058        <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerPlugin" />
    5159        <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}"/>
    5362        <attribute name="Author" value="Brent Easton &lt;b.easton@uws.edu.au>, Jason Reid &lt;jrreid@ucalgary.ca>"/>
    54                 <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerApp"/>
     63        <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerApp"/>
    5564      </manifest>
    5665    </jar>
  • applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/DoubleConfigurer.java

    r5979 r9876  
    1919package org.openstreetmap.josm.plugins.lakewalker;
    2020
    21 import java.text.DecimalFormat;
    22 
    2321/**
    2422 * A Configurer for Double values
     
    2624public class DoubleConfigurer extends StringConfigurer {
    2725
    28   final static DecimalFormat df = new DecimalFormat("#0.0##########");
    29  
    3026  public DoubleConfigurer() {
    3127    super();
     
    3733
    3834  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());
    4036  }
    4137
     
    5046    if (d != null) {
    5147      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      }
    5551    }
    5652  }
     
    5854  public String getValueString() {
    5955    if (value == null || value.equals("")) {
    60       return (String) value;
     56      return null;
    6157    }
    62     return df.format(value);
     58    return value.toString();
    6359  }
    6460}
Note: See TracChangeset for help on using the changeset viewer.