Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Combo Autill Based On User Entry(If User Enter any alphabets, if those are present in Swt Combo..,, Matching Values should be Visible as a List)
Combo Autill Based On User Entry [message #1699177] Mon, 22 June 2015 10:43 Go to next message
PAVAN KISHORE GUDISE is currently offline PAVAN KISHORE GUDISEFriend
Messages: 6
Registered: June 2015
Junior Member
I want to create a Swt Combo which contains some Values. Based on user entry it should show some suggestions from the existing values.

Exp: swt Combo has values Monday,Tuesday,Wednesday,Thursday,Friday,Saturday

If i enter T then Tuesday, Thursday should be visible in a list.
If i enter day all the values should be visible in a list.

F.U.R: AutoCompleteComboMain.java
Please reply ASAP::: ComboUtil.java

Thanks & Regards
Pavan Kishore.Gudise
Re: Combo Autill Based On User Entry [message #1699343 is a reply to message #1699177] Tue, 23 June 2015 13:49 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 877
Registered: January 2012
Senior Member

I haven't taken a look at your code, but JFace provides a field-assist helper that does what you're asking called org.eclipse.jface.fieldassist.ContentProposalAdapter. There's an example in the JFace Snippets.

Brian.
Re: Combo Autill Based On User Entry [message #1699393 is a reply to message #1699343] Wed, 24 June 2015 03:54 Go to previous messageGo to next message
PAVAN KISHORE GUDISE is currently offline PAVAN KISHORE GUDISEFriend
Messages: 6
Registered: June 2015
Junior Member
Hi Brian,
Thanks for your Quick reply,
But in this case it is showing all the available Values. I want to display only if the user enty matches with the combo values.Search should be Free Random Search (Just Like suggestive). MoreOver i want to prefer Swt Combo Only as i have already developed my application using Combo.
I am new to SWT. Please help me ASAP...

Thanks
Pavan Kishore.Gudise
Re: Combo Autill Based On User Entry [message #1699678 is a reply to message #1699393] Thu, 25 June 2015 18:39 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 877
Registered: January 2012
Senior Member

Pavan,

Take a look at the following blog post.

https://krishnanmohan.wordpress.com/2011/12/12/eclipse-rcp-autocompletecombotext-control/

Brian.
Re: Combo Autill Based On User Entry [message #1699706 is a reply to message #1699678] Fri, 26 June 2015 04:07 Go to previous message
PAVAN KISHORE GUDISE is currently offline PAVAN KISHORE GUDISEFriend
Messages: 6
Registered: June 2015
Junior Member
Hi Brian
Thanks for your Reply.
This is what i am looking for.Is this possible to include search based on middle characters also.

Thanks
Pavan
Previous Topic:JavaFX the easiest way to get a HTML5 browser in a SWT app?
Next Topic:[RAP] Font.equals with disposed fonts
Goto Forum:
  


Current Time: Tue Jan 26 13:25:08 GMT 2021

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

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

Back to the top