Changeset 5964 in josm for trunk/data/defaultpresets.xml


Ignore:
Timestamp:
2013-05-17T01:58:59+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #5618 - Use full list of ISO 3166 country codes from JDK for addr:country in presets with new preset attribute values_from

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r5950 r5964  
    4848  text: fixed label to display
    4949  values: comma separated list of values
     50  values_from: to use instead of "values" if the list of values has to be obtained with a Java method
     51               of this form: public static String[] getValues();
     52               The value must be: "full.package.name.ClassName#methodName"
    5053  display_values: comma separated list of values to be displayed instead of the
    5154                  database values, order and number must be equal to values
     
    6770             will also be used to separate selected values in the tag.
    6871  values: delimiter-separated list of values (delimiter can be escaped with backslash)
     72  values_from: to use instead of "values" if the list of values has to be obtained with a Java method
     73               of this form: public static String[] getValues();
     74               The value must be: "full.package.name.ClassName#methodName"
    6975  rows: specify the number of rows to display (default -1)
    7076  display_values: delimiter-separated list of values to be displayed instead of the
     
    60526058                <text key="addr:city" text="City name" use_last_as_default="force" match="key" />
    60536059                <text key="addr:postcode" text="Post code" use_last_as_default="force" match="key" />
    6054                 <combo key="addr:country" text="Country code" values="AT,CH,DE,FR,GB,IT,RS,US" use_last_as_default="force" match="key" />
     6060                <combo key="addr:country" text="Country code" values_from="java.util.Locale#getISOCountries" use_last_as_default="force" match="key" />
    60556061            </optional>
    60566062        </item>
Note: See TracChangeset for help on using the changeset viewer.