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>

All the best,

Alain Pierrot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multiPick.class
Type: application/octet-stream
Size: 4358 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20061207/6ecf7737/attachment.dll
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multiPick.java
Type: application/octet-stream
Size: 5946 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20061207/6ecf7737/attachment-0001.dll
 
-------------- next part --------------



Le 4 d?c. 06 ? 17:12, Hussein Shafie a ?crit :

> Huditsch, Roman (LNG-VIE) wrote:
>>
>> Thanks a lot for the files. Since we are yet using v3.3 in our
>> production environment,
>> I couldn't use those java sources since in 3.3 there is no class
>> "ItemSelectorDialog".
>
> ItemSelectorDialog is a single-selection, autocompletion-enabled,
> generic item selector which would not help you.
> (In v3.3, it was slightly less generic and it was called
> StringChooserDialog if my memory serves me well.)
>
>
>
>> Is it possible to implement such a multi-select in v3.3, too?
>
> Sure. I've sent you some source code just to give you an *idea* of  
> what
> to do. That is, you cannot simply modify the source code I've sent  
> you.
>
> You need to implement your own command. This command should display a
> multiple-selection dialog box of your own.
>
>
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
> ---------------------------------------------------------------------- 
> -----------------
> Orange vous informe que cet  e-mail a ete controle par l'anti-virus  
> mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
>

Reply via email to