Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Frank Du is currently offline Frank Du
Messages: 12
Registered: July 2009
Junior Member
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
Thomas Schindl is currently offline Thomas Schindl
Messages: 5013
Registered: July 2009
Senior Member
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
Frank Du is currently offline Frank Du
Messages: 12
Registered: July 2009
Junior Member
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
Thomas Schindl is currently offline Thomas Schindl
Messages: 5013
Registered: July 2009
Senior Member
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
Frank Du is currently offline Frank Du
Messages: 12
Registered: July 2009
Junior Member
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: Fri Apr 18 04:12:32 EDT 2014

Powered by FUDForum. Page generated in 0.14453 seconds