TextCellEditor - no selection of value when editing [message #462442] |
Wed, 12 October 2005 08:21 |
Eclipse User |
|
|
|
Originally posted by: fabian.eberhardt.sap.com
Hi,
I have a TableViewer with CellEditors. Works fine, but when activating
the inline editing the whole value is selected. I want no selection, but
the cursor at the end of the current value (like F2 in Excel). Is this
possible?
Thanks.
Regards,
Fabian
|
|
|
Re: TextCellEditor - no selection of value when editing [message #462473 is a reply to message #462442] |
Wed, 12 October 2005 17:41 |
Eclipse User |
|
|
|
Originally posted by: sunil_kamath.nohotspammail.com
Fabian Eberhardt <fabian.eberhardt@sap.com> wrote:
> Hi,
>
> I have a TableViewer with CellEditors. Works fine, but when activating
> the inline editing the whole value is selected. I want no selection,
> but the cursor at the end of the current value (like F2 in Excel). Is
> this possible?
>
((Text)textEditor.getControl()).setSelection(
((Text)textEditor.getControl()).getText().length());
--
Sunil
|
|
|
Powered by
FUDForum. Page generated in 0.02900 seconds