Skip to main content



      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 06:43 Go to next message
Eclipse UserFriend
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 09:49 Go to previous messageGo to next message
Eclipse UserFriend
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] Tue, 23 June 2015 23:54 Go to previous messageGo to next message
Eclipse UserFriend
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 14:39 Go to previous messageGo to next message
Eclipse UserFriend
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 00:07 Go to previous message
Eclipse UserFriend
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 Jul 15 09:41:42 EDT 2025

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

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

Back to the top