Alain Pierrot wrote:
> I have written a "multiPick" java command, based upon pick and 
> selectItems (cf. attached files).
> 
> It works according to the pick syntax (not tested as yet with an 
> external file), either with a straight list of strings (2nd parameter 
> set to false) or labeledValuePairs (2nd parameter set to true).
> It returns a list of values between single quotes, in order to allow 
> for values to be 'phrases' and not only 'words'.
> 
> How should I declare, compile and store the class in order to add my 
> custom command to your commands (actually, I have updated xxe_app.jar 
> in my xxe install directory to test it) ?
> 
> I haven't found a way to initialize the "preSelected" array without a 
> first item ? I'm Java illiterate, sorry ? so the preSelected array 
> offers the first item as default). Any hint ?
> To test multiPick, I modified my cutomize.xxe in the following way :
> <command name="multiPick">
>   <class>com.xmlmind.xmleditapp.command.multiPick</class>
> </command>
> 
> <binding>
> <keyPressed code="ESCAPE" />
>   <charTyped char="?" />
>   <command name="testMultiPick"/>
> </binding>
> 
> <command name="testMultiPick">
>     <macro trace="true">
>     <sequence>
>       <command name="multiPick" parameter="multipick true un one deux 
> two trois three l&apos;unit? four 'un &quot;titre&quot;' 'a ?title?'" />
>         <command name="alert" parameter="%_"/>
>       </sequence>
>       </macro>
> </command>
> 

Simply put all your .class files in a .jar and copy this .jar to one of
the two addon/ directories scanned by XXE during its startup. Then, of
course, restart XXE.

For example: on Linux, you could copy it to ~/.xxe/addon/.

More information in
http://www.xmlmind.com/xmleditor/_distrib/doc/dev/command.html#d0e2624


Reply via email to