java - How to use FIXadtl package and XML declared GUI in Eclipse? -


i try able create user interface using xml , stuff: https://code.google.com/p/atdl4j/. below there example of want achieve.

i thought swt create xml applications. have followed these instructions: http://www.eclipse.org/swt/eclipse.php imported swt project workspace , no xml attached myapp class.

what should install able create applications that: https://code.google.com/p/atdl4j/wiki/uiswt

example:

<?xml version="1.0" encoding="utf-8"?>  <strategies     xmlns="http://www.fixprotocol.org/working_groups/algowg/documents/atdl-core-v2.4.9.xsd"     xmlns:val="http://www.fixprotocol.org/working_groups/algowg/documents/atdl-valid-v2.4.9.xsd"     xmlns:lay="http://www.fixprotocol.org/working_groups/algowg/documents/atdl-layout-v2.4.9.xsd"     xmlns:flow="http://www.fixprotocol.org/working_groups/algowg/documents/atdl-flow-v2.4.9.xsd"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://www.fixprotocol.org/working_groups/algowg/documents/atdl-core-v2.4.9.xsd atdl-core-v2.4.9.xsd"     strategyidentifiertag="7620"     versionidentifiertag="7621">      <strategy name="tazer" uirep="tazer" wirevalue="tazer" version="1" fixmsgtype="d" providerid="abc" >         <lay:strategylayout>             <lay:strategypanel collapsible="false" orientation="vertical">                 <lay:strategypanel title="time parameters" collapsible="true" orientation="horizontal">                      <parameter                         name="starttime" xsi:type="utctimestamp_t" type="19"                         uirep="start time"                          fixtag="7602"                         use="required"                         mutableoncxlrpl="true"                         localmkttz="americas/new_york"                         lay:controltype="clock"/>                     <parameter                         name="endtime" xsi:type="utctimestamp_t" type="19"                         uirep="end time"                         fixtag="7603"                         use="required"                         mutableoncxlrpl="true"                         initvalue="16:00:00"                         localmkttz="americas/new_york"                         lay:controltype="clock"/>                     <parameter                         name="text" xsi:type="string_t" type="14"                         uirep="text"                         fixtag="9999"                         use="required"                         mutableoncxlrpl="true"                         lay:controltype="textfield"/>                 </lay:strategypanel>                 <lay:strategypanel collapsible="false" orientation="horizontal">                     <parameter                         name="sweepdistribution" xsi:type="char_t" type="12"                         uirep="sweep distribution"                         fixtag="7640"                         use="required"                         mutableoncxlrpl="true"                         initvalue="u"                         lay:controltype="dropdownlist">                             <enumpair uirep="uniform" wirevalue="u"/>                             <enumpair uirep="gaussian" wirevalue="g"/>                     </parameter>                     <parameter                         name="variance" xsi:type="float_t" type="6"                         uirep="varaince"                         fixtag="7641"                         use="optional"                         mutableoncxlrpl="true"                         minvalue="0.01"                         maxvalue="0.50"                         lay:controltype="textfield">                             <flow:staterule enabled="true">                                 <val:edit field="sweepdistribution" operator="eq" value="g"/>                             </flow:staterule>                             <flow:staterule visible="true">                                 <val:edit field="sweepdistribution" operator="eq" value="u"/>                             </flow:staterule>                         </parameter>                     <parameter                         name="aggression" xsi:type="char_t" type="12"                         uirep="aggression"                         fixtag="7643"                         use="required"                         mutableoncxlrpl="true"                         initvalue="m"                         lay:controltype="dropdownlist">                             <enumpair uirep="low" wirevalue="l"/>                             <enumpair uirep="medium" wirevalue="m"/>                             <enumpair uirep="high" wirevalue="h"/>                     </parameter>                     <parameter                             name="decayrate" xsi:type="float_t" type="6"                             uirep="decay rate"                             fixtag="7614"                             use="required"                             mutableoncxlrpl="true"                             minvalue="0.01"                             maxvalue="3.00"                             initvalue="0.05"                             lay:controltype="singlespinner">                         </parameter>                 </lay:strategypanel>             </lay:strategypanel>         </lay:strategylayout>          <val:strategyedit errormessage="end time should later start time">             <val:edit field="endtime" operator="gt" field2="starttime"/>         </val:strategyedit>          <val:strategyedit errormessage="variance required when sweep distribution gaussian.">             <val:edit logicoperator="or">                 <val:edit field="sweepdistribution" operator="ne" value="g"/>                 <val:edit logicoperator="and">                     <val:edit field="sweepdistribution" operator="eq" value="g"/>                     <val:edit field="variance" operator="ex"/>                 </val:edit>             </val:edit>         </val:strategyedit>          <val:strategyedit errormessage="variance must between 0 , 2.0">             <val:edit logicoperator="or">                 <val:edit field="sweepdistribution" operator="ne" value="g"/>                 <val:edit logicoperator="and">                     <val:edit field="sweepdistribution" operator="eq" value="g"/>                     <val:edit field="variance" operator="ex"/>                     <val:edit field="variance" operator="gt" value="0.0"/>                     <val:edit field="variance" operator="lt" value="2.0"/>                 </val:edit>             </val:edit>         </val:strategyedit>      </strategy>      <strategy name="arrival price" uirep="arrival price" wirevalue="ap" version="1" fixmsgtype="d" providerid="abc" >         <lay:strategylayout>             <lay:strategypanel collapsible="false" orientation="vertical">                 <lay:strategypanel title="time parameters" collapsible="true" orientation="horizontal">                      <parameter name="starttime" xsi:type="utctimestamp_t" type="19"                         uirep="start time"                          fixtag="7602"                         use="required"                         mutableoncxlrpl="true"                         localmkttz="americas/new_york"                         lay:controltype="clock"/>                     <parameter                         name="endtime" xsi:type="utctimestamp_t" type="19"                         uirep="end time"                         fixtag="7603"                         use="required"                         mutableoncxlrpl="true"                         initvalue="16:00:00"                         localmkttz="americas/new_york"                         lay:controltype="clock"/>                     <parameter                         name="aconstval" xsi:type="string_t" type="14"                         fixtag="8603"                         use="required"                         const="true"                         mutableoncxlrpl="false"                         initvalue="qwerty"/>                 </lay:strategypanel>                 <lay:strategypanel collapsible="false" orientation="horizontal">                     <lay:strategypanel title="advanced" collapsible="true" orientation="vertical">                         <parameter                             name="discretionabove" xsi:type="int_t" type="1"                             uirep="discretion above"                             fixtag="7610"                             use="required"                             mutableoncxlrpl="true"                             minvalue="1"                             maxvalue="100"                             initvalue="100"                             lay:controltype="singlespinner"/>                         <parameter                             name="discretionbelow" xsi:type="int_t" type="1"                             uirep="discretion below"                             fixtag="7609"                             use="required"                             mutableoncxlrpl="true"                             minvalue="1"                             maxvalue="100"                             initvalue="20"                             lay:controltype="singlespinner"/>                     </lay:strategypanel>                     <lay:strategypanel title="more" collapsible="true" orientation="vertical">                         <parameter                             name="alphaperiod" xsi:type="int_t" type="1"                             uirep="alphaperiod"                             fixtag="7612"                             use="required"                             mutableoncxlrpl="true"                             minvalue="1"                             maxvalue="300"                             initvalue="90"                             lay:controltype="singlespinner">                             <flow:staterule enabled="true">                                 <val:edit field="discretionabove" operator="gt" value="50"/>                             </flow:staterule>                         </parameter>                         <parameter                             name="alphaannual" xsi:type="float_t" type="6"                             uirep="alphaannual"                             fixtag="7614"                             use="required"                             mutableoncxlrpl="true"                             minvalue="-1000"                             maxvalue="1000"                             initvalue="0"                             lay:controltype="singlespinner">                             <!--flow:staterule visible="false">                                 <val:edit field="timeinforce" operator="eq" value="day"/>                             </flow:staterule-->                         </parameter>                     </lay:strategypanel>                     <lay:strategypanel title="more" collapsible="true" orientation="vertical">                         <parameter                             name="lambda" xsi:type="float_t" type="6"                             uirep="lambda"                             fixtag="7628"                             use="required"                             mutableoncxlrpl="true"                             minvalue="0"                             maxvalue="6"                             lay:controltype="singlespinner">                             <!--flow:staterule enabled="true">                                 <val:edit field="price" operator="gt" field2="discretionbelow"/>                             </flow:staterule-->                         </parameter>                         <parameter                                 name="buyback" xsi:type="boolean_t" type="13"                                 uirep="buyback"                                 fixtag="7639"                                 use="required"                                 mutableoncxlrpl="true"                                 initvalue="false"                                 lay:controltype="checkbox"/>                     </lay:strategypanel>                     <lay:strategypanel title="more" collapsible="true" orientation="vertical">                         <parameter                                 name="crossdiscretion" xsi:type="int_t" type="1"                                 uirep="cross discretion"                                 fixtag="9999"                                 use="required"                                 mutableoncxlrpl="true"                                 initvalue="100"                                 lay:controltype="singlespinner">                         </parameter>                         <parameter                                 name="blocksweeper" xsi:type="int_t" type="1"                                 uirep="block sweeper"                                 fixtag="7641"                                 use="optional"                                 mutableoncxlrpl="true"                                 minvalue="1"                                 maxvalue="10000000"                                 lay:controltype="textfield"/>                         <!--                         <parameter                                 name="blocksweeper2" xsi:type="int_t" type="1"                                 uirep="block sweeper2"                                 fixtag="7642"                                 use="optional"                                 mutableoncxlrpl="true"                                 minvalue="1"                                 maxvalue="10000000"                                 lay:controltype="textfield">                                 <enumpair uirep="value 1" wirevalue="1"/>                         </parameter>                         -->                     </lay:strategypanel>                 </lay:strategypanel>             </lay:strategypanel>         </lay:strategylayout>      <!-- <consttag fixtag="7600" wirevalue="alg" overrideuserinput="true" appenduserinput="false"/> -->          <val:strategyedit errormessage="end time should later start time">             <val:edit field="endtime" operator="gt" field2="starttime"/>         </val:strategyedit>          <val:strategyedit errormessage="cross discretion must 100 if entered.">             <val:edit logicoperator="or">                 <val:edit field="crossdiscretion" operator="nx"/>                 <val:edit field="crossdiscretion" operator="eq" value="100"/>             </val:edit>         </val:strategyedit>          <!--val:strategyedit errormessage="ordtype must market">             <val:edit field="ordtype" operator="eq" value="market"/>         </val:strategyedit-->      </strategy>      <strategy name="twap" uirep="twap" wirevalue="tw" version="1" fixmsgtype="d" providerid="abc" >         <lay:strategylayout>             <lay:strategypanel collapsible="false" orientation="vertical">                 <lay:strategypanel collapsible="false" orientation="horizontal">                     <parameter                         name="starttime" xsi:type="utctimestamp_t" type="19"                         uirep="start time"                          fixtag="7602"                         use="required"                         mutableoncxlrpl="true"                         localmkttz="americas/new_york"                         lay:controltype="clock"/>                     <parameter                         name="endtime" xsi:type="utctimestamp_t" type="19"                         uirep="end time"                         fixtag="7603"                         use="required"                         mutableoncxlrpl="true"                         localmkttz="americas/new_york"                         lay:controltype="clock"/>                 </lay:strategypanel>                 <lay:strategypanel collapsible="false" orientation="horizontal">                     <parameter                         name="discretionbelow" xsi:type="int_t" type="1"                         uirep="discretion below"                         fixtag="7609"                         use="required"                         mutableoncxlrpl="true"                         minvalue="1"                         maxvalue="100"                         initvalue="10"                         lay:controltype="singlespinner"/>                     <parameter                         name="discretionabove" xsi:type="int_t" type="1"                         uirep="discretion above"                         fixtag="7610"                         use="required"                         mutableoncxlrpl="true"                         minvalue="1"                         maxvalue="100"                         initvalue="10"                         lay:controltype="singlespinner"/>                     <parameter                         name="crossdiscretion" xsi:type="int_t" type="1"                         uirep="cross discretion"                         fixtag="7640"                         use="required"                         mutableoncxlrpl="true"                         initvalue="100"                         lay:controltype="singlespinner"/>                     <parameter                         name="blocksweeper" xsi:type="int_t" type="1"                         uirep="block sweeper"                         fixtag="7641"                         use="optional"                         mutableoncxlrpl="true"                         minvalue="1"                         maxvalue="10000000"                         lay:controltype="textfield"/>                     <parameter                         name="buyback" xsi:type="boolean_t" type="13"                         uirep="buyback"                         fixtag="7639"                         use="required"                         mutableoncxlrpl="true"                         initvalue="false"                         lay:controltype="checkbox"/>                 </lay:strategypanel>                     <lay:strategypanel orientation="horizontal">                     <parameter name="randomdisplay" type="13" xsi:type="boolean_t" uirep="random display" use="optional" initvalue="false" lay:controltype="checkbox"/>                     <parameter name="mindisplayqty" type="7" xsi:type="qty_t" uirep="min display qty" fixtag="8089" use="optional" lay:controltype="textfield">                         <flow:staterule enabled="true">                             <val:edit field="randomdisplay" operator="eq" value="y"/>                         </flow:staterule>                     </parameter>                     <parameter name="maxdisplayqty" type="7" xsi:type="qty_t" uirep="max display qty" fixtag="8088" use="optional" lay:controltype="textfield">                         <flow:staterule enabled="true">                             <val:edit field="randomdisplay" operator="eq" value="y"/>                         </flow:staterule>                     </parameter>                 </lay:strategypanel>             </lay:strategypanel>         </lay:strategylayout>          <val:strategyedit errormessage="end time should later start time">             <val:edit field="endtime" operator="gt" field2="starttime"/>         </val:strategyedit>          <val:strategyedit errormessage="cross discretion must 100 if entered.">             <val:edit logicoperator="or">                 <val:edit field="crossdiscretion" operator="nx"/>                 <val:edit field="crossdiscretion" operator="eq" value="100"/>             </val:edit>         </val:strategyedit>          <val:strategyedit errormessage="min display qty must less max display qty">             <val:edit logicoperator="or">                 <val:edit logicoperator="or">                     <val:edit field="mindisplayqty" operator="nx"/>                     <val:edit field="maxdisplayqty" operator="nx"/>                 </val:edit>                 <val:edit field="mindisplayqty" operator="lt" field2="maxdisplayqty"/>             </val:edit>         </val:strategyedit>          <!--val:strategyedit errormessage="min display qty cannot greater order qty">             <val:edit logicoperator="or">                 <val:edit field="mindisplayqty" operator="nx"/>                 <val:edit field="mindisplayqty" operator="le" field2="orderqty"/>             </val:edit>         </val:strategyedit>          <val:strategyedit errormessage="max display qty cannot greater order qty">             <val:edit logicoperator="or">                 <val:edit field="maxdisplayqty" operator="nx"/>                 <val:edit field="maxdisplayqty" operator="le" field2="orderqty"/>             </val:edit>         </val:strategyedit-->      </strategy>      <strategy name="cascade" uirep="cascade" wirevalue="c" version="1" locations="amers" fixmsgtype="d" providerid="abc">         <lay:strategylayout>             <lay:strategypanel orientation="vertical">                 <lay:strategypanel orientation="horizontal">                     <parameter name="starttime" uirep="start time" fixtag="168" use="optional" xsi:type="utctimestamp_t" type="19" lay:controltype="clock"/>                      <parameter name="endtime" uirep="end time" fixtag="126" use="optional" xsi:type="utctimestamp_t" type="19" initvalue="16:00:00" lay:controltype="clock"/>                      <parameter name="completeall" uirep="complete all" fixtag="6000" use="optional" xsi:type="boolean_t" type="13" truewirevalue="1" falsewirevalue="{null}" lay:controltype="checkbox"/>                 </lay:strategypanel>                 <lay:strategypanel orientation="horizontal">                     <parameter name="aggression" uirep="aggression" type="12" fixtag="6001" xsi:type="char_t" initvalue="2" use="optional" lay:controltype="dropdownlist">                         <enumpair uirep="low"  wirevalue="1"/>                         <enumpair uirep="medium" wirevalue="2"/>                         <enumpair uirep="high" wirevalue="3"/>                     </parameter>                     <parameter name="customizerate" uirep="custom volume" use="optional" xsi:type="boolean_t" type="13" lay:controltype="checkbox"/>                     <parameter name="minrate" type="11" xsi:type="percentage_t" uirep="min %" fixtag="6002" use="optional" lay:controltype="textfield">                         <flow:staterule value="0">                             <val:edit field="aggression" operator="eq" value="1"/>                         </flow:staterule>                         <flow:staterule value="10">                             <val:edit field="aggression" operator="eq" value="2"/>                         </flow:staterule>                         <flow:staterule value="20">                             <val:edit field="aggression" operator="eq" value="3"/>                         </flow:staterule>                         <flow:staterule enabled="true">                             <val:edit field="customizerate" operator="eq" value="y"/>                         </flow:staterule>                     </parameter>                     <parameter name="maxrate" type="11" xsi:type="percentage_t" uirep="max %" fixtag="8046" use="optional" lay:controltype="textfield">                         <flow:staterule value="10">                             <val:edit field="aggression" operator="eq" value="1"/>                         </flow:staterule>                         <flow:staterule value="20">                             <val:edit field="aggression" operator="eq" value="2"/>                         </flow:staterule>                         <flow:staterule value="30">                             <val:edit field="aggression" operator="eq" value="3"/>                         </flow:staterule>                         <flow:staterule enabled="true">                             <val:edit field="customizerate" operator="eq" value="y"/>                         </flow:staterule>                     </parameter>                 </lay:strategypanel>             </lay:strategypanel>         </lay:strategylayout>         <val:strategyedit errormessage="start time must preceed end time.">             <val:edit field="starttime" operator="lt" field2="endtime"/>         </val:strategyedit>         <val:strategyedit errormessage="min % vol cannot greater max % vol">             <val:edit field="minrate" operator="le" field2="maxrate"/>         </val:strategyedit>     </strategy>  </strategies> 


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -