Skip to main content



      Home
Home » Eclipse Projects » JFace » Implementing Auto complete
Implementing Auto complete [message #6034] Fri, 15 May 2009 05:48 Go to next message
Eclipse UserFriend
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 #6166 is a reply to message #6034] Fri, 15 May 2009 13:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi George,

Find some quite time and study SourceViewer and its related classes and
interfaces from org.eclipse.jface.text. There are probably good articles
and/or EclipseCon tutorials/talks about this, and a quick Google search
turned up this: http://www.realsolve.co.uk/site/tech/jface-text.php

Boris

"Goerge Moore" <win1for@yahoo.com> wrote in message
news:c8d49a39d6e9b24643041f2bb9f7804c$1@www.eclipse.org...
> 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 #7648 is a reply to message #6166] Mon, 18 May 2009 05:50 Go to previous messageGo to next message
Eclipse UserFriend
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 #7751 is a reply to message #7648] Mon, 18 May 2009 17:13 Go to previous messageGo to next message
Eclipse UserFriend
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 #7773 is a reply to message #7751] Mon, 18 May 2009 23:40 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Implementing Auto complete [message #7816 is a reply to message #7773] Tue, 19 May 2009 04:03 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:Databinding with Enum + Combo
Next Topic:Re: list viewer inline editing?
Goto Forum:
  


Current Time: Thu May 08 23:17:47 EDT 2025

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

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

Back to the top