Changeset 9821 in josm for trunk/data/preferences.xsd


Ignore:
Timestamp:
2016-02-18T11:07:38+01:00 (4 years ago)
Author:
bastiK
Message:

fixed #12522 - Advanced preferences: display default entries consistently

Saves default preference entries to a cache file (cache/default_preferences.xml), so the list of advanced preferences is filled with all known default values consistently from the start and not gradually as you use different features during a session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/preferences.xsd

    r9813 r9821  
    2626        <attribute name="key" type="string" use="required" />
    2727    </complexType>
    28    
     28
    2929    <complexType name="lists">
    3030        <sequence>
     
    5656        <attribute name="value" type="string" use="required"/>
    5757    </complexType>
     58
     59    <!-- cache for default preference values -->
     60
     61    <element name="preferences-defaults" type="tns:root-def"/>
     62
     63    <complexType name="root-def">
     64        <choice minOccurs="0" maxOccurs="unbounded">
     65            <element name="tag" type="tns:tag-def" nillable="true"/>
     66            <element name="list" type="tns:list-def" nillable="true"/>
     67            <element name="lists" type="tns:lists-def" nillable="true"/>
     68            <element name="maps" type="tns:maps-def" nillable="true"/>
     69        </choice>
     70        <attribute name="version" type="string" />
     71    </complexType>
     72
     73    <complexType name="tag-def">
     74        <attribute name="key" type="string" use="required" />
     75        <!-- element must be either nil or have the value attribute -->
     76        <attribute name="value" type="string" use="optional"/>
     77        <attribute name="time" type="decimal" use="required"/>
     78    </complexType>
     79
     80    <complexType name="list-def">
     81         <complexContent>
     82             <extension base="tns:list">
     83                <attribute name="time" type="decimal" use="required"/>
     84            </extension>
     85         </complexContent>
     86    </complexType>
     87
     88    <complexType name="lists-def">
     89         <complexContent>
     90             <extension base="tns:lists">
     91                <attribute name="time" type="decimal" use="required"/>
     92            </extension>
     93         </complexContent>
     94    </complexType>
     95
     96    <complexType name="maps-def">
     97         <complexContent>
     98             <extension base="tns:maps">
     99                <attribute name="time" type="decimal" use="required"/>
     100            </extension>
     101         </complexContent>
     102    </complexType>
    58103</schema>
Note: See TracChangeset for help on using the changeset viewer.