Skip to main content



      Home
Home » Eclipse Projects » Nebula » How to handle AutoComplete control properly in Grid Cell Editor?
How to handle AutoComplete control properly in Grid Cell Editor? [message #63905] Wed, 03 June 2009 20:23 Go to next message
Eclipse UserFriend
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 #63929 is a reply to message #63905] Wed, 03 June 2009 20:27 Go to previous messageGo to next message
Eclipse UserFriend
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
>
Re: How to handle AutoComplete control properly in Grid Cell Editor? [message #65832 is a reply to message #63929] Fri, 17 July 2009 16:32 Go to previous message
Eclipse UserFriend
Thank you so much, Tom! It works perfectly!

Best Regards,
Frank Du


Tom Schindl wrote:

> The problem is how JFace handles this scenario. Please use the code
> shown in
>
http://wiki.eclipse.org/JFaceSnippets#Snippet060TextCellEdit orWithContentProposal

> Tom
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 Go to previous message
Eclipse UserFriend
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
>
Re: How to handle AutoComplete control properly in Grid Cell Editor? [message #595730 is a reply to message #63929] Fri, 17 July 2009 16:32 Go to previous message
Eclipse UserFriend
Thank you so much, Tom! It works perfectly!

Best Regards,
Frank Du


Tom Schindl wrote:

> The problem is how JFace handles this scenario. Please use the code
> shown in
>
http://wiki.eclipse.org/JFaceSnippets#Snippet060TextCellEdit orWithContentProposal

> Tom
Previous Topic:CalendarCombo Date Format
Next Topic:BG Color for a PShelfItem
Goto Forum:
  


Current Time: Wed Mar 12 00:28:38 EDT 2025

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

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

Back to the top