Implementing Auto complete [message #6034] |
Fri, 15 May 2009 05:48  |
Eclipse User |
|
|
|
Hello Everybody,
I would like to ask if it is possible to implement auto complete
functonality(like in the eclipse editor) with a Text widget. I learnt the
auto complete works only with editors. But in my case i have a form with a
Text widget area of size 300 X 100 and want to implement the auto complete
functionality inside.
If it is possible can you please hep me what to do to get it done or refer
me to a pointer where i can learn how it is implemented.
I read some thing on this site:
http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/jface_fieldassist.htm
but it is talking about "SourceViewerConfiguration" and others but the
Text widget has no "SourceViewerConfiguration" options.
Need your help. Thank you.
Regards,
George.
|
|
|
|
|
Re: Implementing Auto complete [message #7751 is a reply to message #7648] |
Mon, 18 May 2009 17:13   |
Eclipse User |
|
|
|
Hi George,
here you find an example for field assist on a text field:
http://www.vogella.de/articles/RichClientPlatform/article.ht ml#fieldassist
Best regards, Lars
George Moore wrote:
> Hi,
> Thank you very much for your reply. I appreciate it.
> However, the popup appears for the first time only and when i choose a
> word and begins to type the next word, the popup don't show up again.
>
> How can i fix it and also how can i set the autoactivate funtionality.
>
> Here is the snippet of my code:
>
> TextContentAdapter cAdapter = new TextContentAdapter();
> AutoCompleteField at = new AutoCompleteField(this.txtSoulQuery,
> cAdapter, new String [] {"?One", "ProposalTwo",
> "cProposalThree"});
>
>
> Thank you.
>
>
|
|
|
|
Re: Implementing Auto complete [message #7816 is a reply to message #7773] |
Tue, 19 May 2009 04:03  |
Eclipse User |
|
|
|
Hi,
I think what you are after is this contribution [1].
Tom
[1]https://bugs.eclipse.org/bugs/show_bug.cgi?id=262846
George Moore schrieb:
> Hi,
>
> Thanks for your reply. I have the same implementation as yours and
> that is not what am looking for. What am looking for is an
> implementation that filters the proposals so that when the user begins
> to type the proposals will be filterd like the way Google suggest or
> Browsers work.
>
> Need Help.
>
> Thank you very Much.
>
>
>
>
> George.
>
|
|
|
Powered by
FUDForum. Page generated in 0.09427 seconds