incremental search [message #448456] |
Mon, 10 January 2005 12:13  |
Eclipse User |
|
|
|
Hi,
In the property editor of my application when selecting for a a drop down
or extended dialog cell editors, to go to a next item in the list I have
keep pressing the letter key again and again till I see that particular
entry. E.g. If I have to find the entry "string" I have to keep pressing
"s" to browse thr' all the entries starting with s to come to the point of
finding string.
How can I override this search where I can do incremental search - like I
will trye s then t then r and it will take me to words with str in them
Currently if I type t after s it will take me to a new word strating with
T.
Hope I am clear.
I want to change only the searching withing the combo boxes and exteded
dialog boxes. If there are lot of items and I know what i want searching
for it using insremental search is easier. E.g look at any fileopendialog
in windows. As you keep typing it will shoow the match. SO I just want to
override this behaviour.
Pl. let me know if you can give any hint.
Thanks in advance for your help.
-Jeff
|
|
|
Re: incremental search [message #448475 is a reply to message #448456] |
Mon, 10 January 2005 15:04  |
Eclipse User |
|
|
|
Search is provided by the native widget. On some platforms, there is no
search. I would strongly suggest that you just let the operating system do
this in the same manner as other native applications and don't try to
implement it. If you still want to do it, you'll need to implement an
SWT.KeyDown listener, do your own searching and set event.doit=false before
returning to disable the operating system search (if any). Be careful of
using keys like ' ', '\r' etc to control the search. These keys might be
used by the widget.
"jeff" <jefftucky@hotmail.com> wrote in message
news:crud3f$u4i$1@www.eclipse.org...
> Hi,
> In the property editor of my application when selecting for a a drop down
> or extended dialog cell editors, to go to a next item in the list I have
> keep pressing the letter key again and again till I see that particular
> entry. E.g. If I have to find the entry "string" I have to keep pressing
> "s" to browse thr' all the entries starting with s to come to the point of
> finding string.
> How can I override this search where I can do incremental search - like I
> will trye s then t then r and it will take me to words with str in them
> Currently if I type t after s it will take me to a new word strating with
> T.
> Hope I am clear.
> I want to change only the searching withing the combo boxes and exteded
> dialog boxes. If there are lot of items and I know what i want searching
> for it using insremental search is easier. E.g look at any fileopendialog
> in windows. As you keep typing it will shoow the match. SO I just want to
> override this behaviour.
> Pl. let me know if you can give any hint.
>
> Thanks in advance for your help.
> -Jeff
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.16814 seconds