Skip to main content


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] Thu, 04 June 2009 00:23 Go to next message
Frank Du is currently offline Frank DuFriend
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] Thu, 04 June 2009 00:27 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 20:32 Go to previous message
Frank Du is currently offline Frank DuFriend
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] Thu, 04 June 2009 00:27 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 20:32 Go to previous message
Frank Du is currently offline Frank DuFriend
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: Sat Dec 21 17:12:46 GMT 2024

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

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

Back to the top