How to handle AutoComplete control properly in Grid Cell Editor? [message #63905] |
Wed, 03 June 2009 20:23  |
Eclipse User |
|
|
|
Dear All,
I encountered a mouse focus issue with AutoComplete control.
First I extended TextCellEditor to provide auto-complete feature via:
a. IContentProposalProvider
b. ContentProposalAdapter
It works great with keyboard navigation. But, when I mouse click a popup
proposal, the floating information control gets focused and TextCellEditor
loses focus. Then the selection won't change the editing text.
Do I need to register additional listener to some control? If yes, what's
it?
Thank you so much for the help! It not big issue but bothers a lot.
Best Regards,
Frank Du
|
|
|
|
|
Re: How to handle AutoComplete control properly in Grid Cell Editor? [message #594912 is a reply to message #63905] |
Wed, 03 June 2009 20:27  |
Eclipse User |
|
|
|
The problem is how JFace handles this scenario. Please use the code
shown in
http://wiki.eclipse.org/JFaceSnippets#Snippet060TextCellEdit orWithContentProposal
Tom
Frank Du schrieb:
> Dear All,
>
> I encountered a mouse focus issue with AutoComplete control.
> First I extended TextCellEditor to provide auto-complete feature via:
>
> a. IContentProposalProvider
> b. ContentProposalAdapter
>
> It works great with keyboard navigation. But, when I mouse click a popup
> proposal, the floating information control gets focused and
> TextCellEditor loses focus. Then the selection won't change the editing
> text.
> Do I need to register additional listener to some control? If yes,
> what's it?
>
> Thank you so much for the help! It not big issue but bothers a lot.
>
> Best Regards,
> Frank Du
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04797 seconds