Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumswriting into an editable table cell
https://www.eclipse.org/forums/index.php/mv/msg/369227/900939/#msg_900939
I tried everything that came into my mind to put text into the cell, but Jubula always stops the test case due to an "action error", telling me the cell is not editable.
I just managed to write into it by sending single keys, but in this cell there is a time required, thus the syntax gets checked and Jubula makes "02.00" out of my "02:00" (german layout).
EDIT:
I still don't know, why Jubula tells me the cell is not editable, but managed to put "02:00" into the cell in 8 steps: selectCell, pressAnyKey[0], pressAnyKey[2], setToggleKey_CAPSLOCK [true], pressAnyKey[ : ], ... looks inelegant but does the job.
Peter]]>Peter S.2012-08-09T07:27:28-00:00Re: writing into an editable table cell
https://www.eclipse.org/forums/index.php/mv/msg/369227/901493/#msg_901493
Using the Replace Text in Cell action may not always work - it depends very much on the table type used and what kind of cell editor it has.
My experience has been that writing a module that does the following is usually successful:
Replace Text in Cell [Cell to select; Text to enter]
- Select cell (1 or 2 clicks, depending what is needed)
- Any steps necessary to select the whole text (either 1 or 2 clicks will have done it or I may need to press ctrl+a, F2 ...)
- Application input text (writes the text where the current focus is)
- Enter
It should be easier to do than in 8 steps The module is perhaps complex to write at first, but you can parametrize the cell to select and the text to enter, so you only need to write it once.
HTH,
Alex]]>Alexandra Schladebeck2012-08-13T07:16:45-00:00Re: writing into an editable table cell
https://www.eclipse.org/forums/index.php/mv/msg/369227/901556/#msg_901556
thank you for your reply. Application input text gives me an error with the description "Point to click is outside of component", although the focus IS in the cell (which is obvious, because my static pressAnyKey-attempt works).
Application external input text writes text into my cell, but only if it doesn't contain a special character, e.g. a colon ":" (which is mandatory for my time-column) or whitespace " ". Otherwise an action error says "Invalid Parameter Value".
Is there a way that non-alphanumeric characters are accepted too?
Thanks in advance, Peter]]>Peter S.2012-08-13T11:41:42-00:00Re: writing into an editable table cell
https://www.eclipse.org/forums/index.php/mv/msg/369227/902141/#msg_902141
That is interesting, I don't think I've seen that before! If you can give some details on what kind of table / SWT version / table cell editor you are using, that may help us to find out what is going on there - you can put a ticket in.
The external inputs do have a reduced character set, so they wont help here. One possible way that might get you past this point is to use the action "Copy to clipboard" followed by Ctrl+V (using key combination (either "normal" or "external" - see which works for you)). It's not the prettiest set of steps, but if your aim is to get the text into the table then it should help you achieve that
HTH,
Alex ]]>Alexandra Schladebeck2012-08-16T06:27:57-00:00Re: writing into an editable table cell
https://www.eclipse.org/forums/index.php/mv/msg/369227/902171/#msg_902171
this copyTextToClipboard, pressKeyCombination_CTRL_V sequence seems to work perfectly.
Moreover, I actually like it. It is easy to parameterize and takes just two steps more (selectCell, paste) than a replaceText command.