Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Select all from Text widget
Select all from Text widget [message #143462] Tue, 14 October 2003 04:08 Go to next message
Eclipse UserFriend
Originally posted by: Eric.Jain.isb-sib.ch

I have a read-only Text widget in a Dialog, and want to add support for
Ctrl+A (or whatever "select all" is bound to). If I use a StyledText, I can
say text.setKeyBinding(SWT.CTRL + 'a', ST.SOMETHING), but I'd rather not
hardcode the accelerator key, and there doesn't seem to be a constant for
select all. Any suggestions?

--
Eric Jain
Re: Select all from Text widget [message #143601 is a reply to message #143462] Tue, 14 October 2003 08:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Eric Jain wrote:

>I have a read-only Text widget in a Dialog, and want to add support for
>Ctrl+A (or whatever "select all" is bound to). If I use a StyledText, I can
>say text.setKeyBinding(SWT.CTRL + 'a', ST.SOMETHING), but I'd rather not
>hardcode the accelerator key, and there doesn't seem to be a constant for
>select all. Any suggestions?
>
>
This might help in the future:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=41182

Dani

>--
>Eric Jain
>
>
>
>
Re: Select all from Text widget [message #143622 is a reply to message #143601] Tue, 14 October 2003 09:40 Go to previous message
Eclipse UserFriend
Originally posted by: Eric.Jain.isb-sib.ch

> This might help in the future:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=41182

Thanks - now I'm totally confused: IKeyBinding, IKeyBindingService,
IKeyBindingManager, KeySequence, ICommandListener...

Hope this will be documented somewhere soon :-)

--
Eric Jain
Previous Topic:Key bindings
Next Topic:How to provide context-sensitive help for a view
Goto Forum:
  


Current Time: Wed May 28 17:40:43 EDT 2025

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

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

Back to the top