Text widget: getSelectionText() [message #92502] |
Tue, 10 June 2008 12:52 |
Eclipse User |
|
|
|
Originally posted by: topgun.in.gmail.com
Hi,
I want to perform actions on selected text in the Text widget using a
button or using a key combination(ctrl + <some key>).
As soon as I press a button after selecting some text in the widget, the
selection is lost.
Can someone provide a code snippet for both using a button and a key
combination?
Thanks,
Pushkar
|
|
|
Re: Text widget: getSelectionText() [message #92581 is a reply to message #92502] |
Tue, 10 June 2008 20:52 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Hi Pushkar,
using key combinations won't work currently as key listeners aren't
yet implemented in RAP.
In general, I think it should work what you intend. If obtaining the
selected text works in SWT but doesn't work in RAP, feel free to
file a bug.
Cheers,
Rüdiger
Pushkar Raj Pande wrote:
> Hi,
>
> I want to perform actions on selected text in the Text widget using a
> button or using a key combination(ctrl + <some key>).
> As soon as I press a button after selecting some text in the widget, the
> selection is lost.
>
> Can someone provide a code snippet for both using a button and a key
> combination?
>
> Thanks,
> Pushkar
>
>
>
|
|
|
Re: Text widget: getSelectionText() [message #92661 is a reply to message #92502] |
Wed, 11 June 2008 08:40 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
it seems to me that this has nothing to do with the key-combinations,
but there seems to be a buggy behaviour on Text#setSelection(int,int). I
filed a bug:
236577: [Text] Text#setSelection(int,int) doesn't work properly
https://bugs.eclipse.org/bugs/show_bug.cgi?id=236577
If you see additional problems, feel free to comment on this bug or file
a new one if you think those problems are not related.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Pushkar Raj Pande [mailto:topgun.in@gmail.com]
Bereitgestellt: Dienstag, 10. Juni 2008 14:53
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Text widget: getSelectionText()
Betreff: Text widget: getSelectionText()
Hi,
I want to perform actions on selected text in the Text widget using a
button or using a key combination(ctrl + <some key>).
As soon as I press a button after selecting some text in the widget, the
selection is lost.
Can someone provide a code snippet for both using a button and a key
combination?
Thanks,
Pushkar
|
|
|
Powered by
FUDForum. Page generated in 0.03234 seconds