On 06/17/2011 01:02 PM, Hussein Shafie wrote:

The screenshots you sent me show a set-attribute-button() working as
expected. Its dynamically created menu items are not supposed to display
any information beyond the bare IDs.

Rationale: in most cases, very wide menu items (i.e. containing both the
IDs and their descriptions) would make the menu unusable.

If you want to display both the IDs and the text snippets describing
these IDs, please use a command-button() invoking the putAttribute command.


Yes, we know this, and this is what we do in our XXE addon up to XXE 4.8.0.

But we think it is unfortunate to have to maintain another piece of code (much longer because we have to look for IDs and names in different elements...), while the new attributeEditor() feature is simple, clear concise and does exactly what we want.


Benefiting for the same valueEditor() in both cases would be our favorite choice by far; If you are against this, another suggestion could it be possible to write a slightly different variant of the "pick" command which would allow to implement easily the command we need with not much more code than the valueEditor() requires:

So far, you have a variant of "pick" in which you can pass a list of mixed items and values; would it be possible to develop a variant of the command taking two distinct lists (one for items, one for values); this would really help.

*Rationale:* There are many cases where it is complicated to build this mixed lines with a simple call, e.g. join(...), while building two lists would be very easy.

Many thanks for your very precise answer, as usual.
Best regards.






 
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to