[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Autocomplete Combo
|
Try the following project:
http://sourceforge.net/projects/swtaddons/
This provides an autocomplete combo attachment for Eclipse SWT using
Field Assist. You should find something there that you can use.
The project includes examples similar to the Field Assist Example.
Hope this helps.
Derek
-------- Original Message --------
Subject: Autocomplete Combo
Date: Thu, 26 May 2005 22:45:30 -0400
From: J Aaron Farr <farra@xxxxxxxxxx>
Organization: EclipseCorner
Newsgroups: eclipse.platform.swt
Hello.
Does anyone have a code snippet for an autocomplete combo? I've tried a
couple of methods and haven't been able to get it right. I seem to have
two issues:
1. If I try to do "combo.setItems()" in the body of my ModifyListener, I
get a java.lang.StackOverflowError, so I can only use the combo.add() or
combo.remove() methods but even then...
2. I want to be able to display the popup list as the user types into
the combo's text field. However, the popup remains hidden while typing.
Is there a way to force it to "popup"?
I'm looking for something like Google Suggest's [1] text box.
Ultimately I want to subclass CellEditor and add this feature to a
ComboBoxCellEditor.
Thanks,
jaaron
[1] http://www.google.com/webhp?complete=1&hl=en