Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TextCellEditor - no selection of value when editing
TextCellEditor - no selection of value when editing [message #462442] Wed, 12 October 2005 08:21 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Tutorial to SWT for Printing
Next Topic:Re: Migrating Swing Application
Goto Forum:
  


Current Time: Fri Apr 26 01:19:15 GMT 2024

Powered by FUDForum. Page generated in 0.02921 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top