Changeset 7817

Show
Ignore:
Timestamp:
12/19/06 18:27:30 (4 years ago)
Author:
sys
Message:

Personnalisation d'une extension d'un item de composition

Location:
trunk/Wsp_Modeling
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/es/content/organisation/compositionPrim/xml.xed.xml

    r7197 r7817  
    9292                        <childs> 
    9393                                <se:ref se:refid="sm:help" se:refurl="chrome://sm_modeling/content/xEdition/core.xed.xml"/> 
    94                                 <se:ref se:refid="sm:identification" se:refurl="chrome://sm_modeling/content/xEdition/core.xed.xml"/> 
    95                                 <element se:bind="element" se:name="sm:structure" se:card="1"> 
     94                                <se:ref se:refid="sm:identificationWithExt" se:refurl="chrome://sm_modeling/content/xEdition/core.xed.xml"/> 
     95                                <element se:bind="element" se:name="sm:structure"> 
    9696                                        <atts/> 
    9797                                        <childs> 
  • trunk/Wsp_Modeling/es/content/resources/audioPrim/xml.xed.xml

    r7197 r7817  
    5858                        <childs> 
    5959                                <se:ref se:refid="sm:help" se:refurl="chrome://sm_modeling/content/xEdition/core.xed.xml"/> 
    60                                 <element se:id="sm:identificationWithExtension" se:bind="element" se:name="sm:identification" se:card="1"> 
     60                                <element se:bind="element" se:name="sm:identification"> 
    6161                                        <atts> 
    6262                                                <attribute se:name="extensions" se:bind="attribute" se:mandat="true"> 
    63                                                         <wordsInput notnull="true" trim="true" flex="1"/> 
     63                                                        <wordsInput notnull="true" trim="true"/> 
    6464                                                </attribute> 
    6565                                        </atts> 
  • trunk/Wsp_Modeling/es/content/resources/binaryPrim/xml.xed.xml

    r7197 r7817  
    6464                        <childs> 
    6565                                <se:ref se:refid="sm:help" se:refurl="chrome://sm_modeling/content/xEdition/core.xed.xml"/> 
    66                                 <element se:id="sm:identificationWithExtension" se:bind="element" se:name="sm:identification" se:card="1"> 
     66                                <element se:bind="element" se:name="sm:identification"> 
    6767                                        <atts> 
    6868                                                <attribute se:name="extensions" se:bind="attribute" se:mandat="true"> 
    69                                                         <wordsInput notnull="true" trim="true" flex="1"/> 
     69                                                        <wordsInput notnull="true" trim="true"/> 
    7070                                                </attribute> 
    7171                                        </atts> 
  • trunk/Wsp_Modeling/es/content/resources/folderPrim/xml.xed.xml

    r7756 r7817  
    5757                        <childs> 
    5858                                <se:ref se:refid="sm:help" se:refurl="chrome://sm_modeling/content/xEdition/core.xed.xml"/> 
    59                                 <element se:id="sm:identificationWithExtension" se:bind="element" se:name="sm:identification" se:card="1"> 
     59                                <element se:bind="element" se:name="sm:identification"> 
    6060                                        <atts> 
    6161                                                <attribute se:name="extensions" se:bind="attribute" se:mandat="true"> 
    62                                                         <wordsInput notnull="true" trim="true" flex="1"/> 
     62                                                        <wordsInput notnull="true" trim="true"/> 
    6363                                                </attribute> 
    6464                                        </atts> 
  • trunk/Wsp_Modeling/es/content/resources/imagePrim/xml.xed.xml

    r7197 r7817  
    5757                        <childs> 
    5858                                <se:ref se:refid="sm:help" se:refurl="chrome://sm_modeling/content/xEdition/core.xed.xml"/> 
    59                                 <element se:bind="element" se:name="sm:identification" se:card="1"> 
     59                                <element se:bind="element" se:name="sm:identification"> 
    6060                                        <atts> 
    6161                                                <attribute se:bind="attribute" se:name="extensions" se:mandat="true"> 
    62                                                         <wordsInput notnull="true" trim="true" flex="1"/> 
     62                                                        <wordsInput notnull="true" trim="true"/> 
    6363                                                </attribute> 
    6464                                        </atts> 
  • trunk/Wsp_Modeling/es/content/resources/videoPrim/xml.xed.xml

    r7197 r7817  
    5858                        <childs> 
    5959                                <se:ref se:refid="sm:help" se:refurl="chrome://sm_modeling/content/xEdition/core.xed.xml"/> 
    60                                 <element se:id="sm:identificationWithExtension" se:bind="element" se:name="sm:identification" se:card="1"> 
     60                                <element se:bind="element" se:name="sm:identification"> 
    6161                                        <atts> 
    6262                                                <attribute se:name="extensions" se:bind="attribute" se:mandat="true"> 
    63                                                         <wordsInput notnull="true" trim="true" flex="1"/> 
     63                                                        <wordsInput notnull="true" trim="true"/> 
    6464                                                </attribute> 
    6565                                        </atts> 
  • trunk/Wsp_Modeling/es/content/xEdition/core.xed.xml

    r7197 r7817  
    6868                                </attribute> 
    6969                                <attribute se:bind="attribute" se:name="targetPrefix" se:mandat="true"> 
    70                                         <wordsInput notnull="true" trim="true" validRegExp="^[a-zA-Z0-9_À-ÿ:\\\/.&amp;$-]+$" autocompleteProviderXPath="../../xul:wspInputHistoryProvider[@code='targetPrefix']"/> 
     70                                        <wordsInput notnull="true" trim="true" validRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="../../xul:wspInputHistoryProvider[@code='targetPrefix']"/> 
    7171                                </attribute> 
    7272                                <attribute se:bind="attribute" se:name="code" se:mandat="true"> 
    73                                         <wordsInput notnull="true" trim="true" filterRegExp="^[a-zA-Z0-9]+$"/> 
     73                                        <wordsInput notnull="true" trim="true" validRegExp="^[a-zA-Z0-9]+$"/> 
     74                                </attribute> 
     75                        </atts> 
     76                </element> 
     77                <element se:id="sm:identificationWithExt" se:bind="element" se:name="sm:identification" se:card="1"> 
     78                        <atts> 
     79                                <wspInputHistoryProvider code="identifNamespace"/> 
     80                                <wspInputHistoryProvider code="targetPrefix"/> 
     81                                <attribute se:bind="attribute" se:name="targetNamespace" se:mandat="true"> 
     82                                        <wordsInput notnull="true" trim="true" validRegExp="^[a-zA-Z0-9_À-ÿ:\\\/.&amp;$-]+$" autocompleteProviderXPath="../../xul:wspInputHistoryProvider[@code='identifNamespace']"/> 
     83                                </attribute> 
     84                                <attribute se:bind="attribute" se:name="targetPrefix" se:mandat="true"> 
     85                                        <wordsInput notnull="true" trim="true" validRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="../../xul:wspInputHistoryProvider[@code='targetPrefix']"/> 
     86                                </attribute> 
     87                                <attribute se:bind="attribute" se:name="code" se:mandat="true"> 
     88                                        <wordsInput notnull="true" trim="true" validRegExp="^[a-zA-Z0-9]+$"/> 
     89                                </attribute> 
     90                                <attribute se:bind="attribute" se:name="itemExtension" se:defaultvalue="xml" tooltiptext="Extension du fichier sans le point : 'module', 'etape'..."> 
     91                                        <wordsInput notnull="true" trim="true"/> 
    7492                                </attribute> 
    7593                        </atts> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/organisationPrims.xml

    r7757 r7817  
    245245                        "[![agent=//iconFolderPath]!]/icovalid.png", 
    246246                        null, 
    247                         ".xml", 
     247                        "[![agent=//fileExt]!]", 
    248248                        "string", 
    249249                        '<?xml version="1.0" encoding="UTF-8"?><sc:item xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:[![agent=//prefixModel]!]="[![agent=//nsModel]!]"><[![agent=//prefixModel]!]:[![agent=//tagRootModel]!]/></sc:item>', 
     
    438438                <source type="xpath-statique">si(sm:structure/sm:meta/@sc:refUri, concat('@', getIdFromPath(sm:structure/sm:meta/@sc:refUri)))</source> 
    439439        </valeur> 
     440        <!-- Itel public : extension de l'item --> 
     441        <valeur code="fileExt"> 
     442                <source type="xpath-statique">si(sm:identification/@itemExtension, si(starts-with(sm:identification/@itemExtension, '.'), sm:identification/@itemExtension, concat('.', sm:identification/@itemExtension)), '.xml')</source> 
     443        </valeur> 
    440444        <!-- Item public : Chemin d'acc�au dossier d'icone : res:src=wsp:xxx;dst=yyy--> 
    441445        <valeur code="iconFolderPath"> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/organisationSs.xml

    r7699 r7817  
    2929        <sdr format="text/xml"/> 
    3030         
    31         <module code="identif" type="com.scenari.m.bdp.module.identif.epicure.HModuleIdentifEpicureLoader" localName="[![agent=//tagRootModel]!]" namespace="[![agent=//nsModel]!]"/> 
     31        <module code="identif" type="com.scenari.m.bdp.module.identif.xml.HModuleIdentifItemLoader" localName="[![agent=//tagRootModel]!]" namespace="[![agent=//nsModel]!]" fileExt="[![agent=//fileExt]!]"/> 
    3232         
    3333        <module code="pres" type="com.scenari.m.bdp.module.pres.HModulePresLoader">