Completion, another sorting way.

Post a reply

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Completion, another sorting way.

Re: Completion, another sorting way.

Post by Matias22 » Thu Mar 04, 2010 6:38 pm

Thank you, works now :)

Re: Completion, another sorting way.

Post by robert » Sat Feb 27, 2010 10:44 pm

I'm not sure I understand, could you not just do this:

Code: Select all
for (int i=0; i<JAVA_KEY.length; i++) {
   provider.addCompletion(new BasicCompletion(provider, JAVA_KEY[i]));
}

?

Let me know if I'm not understanding you. Also note that you're not limited to BasicCompletion; you can create your own Completion implementations as well. Check out the Javadoc for the AutoComplete library if you're interested, and feel free to post questions or comments here.

Completion, another sorting way.

Post by Matias22 » Fri Feb 26, 2010 4:51 pm

Hello everyone, firstly I would like to say thanx for this great jon.

And now I have question. So. Primarily we can add new Word to Completion by for example:

provider.addCompletion(new BasicCompletion(provider, "ZONE"));

And I need to create something like:

provider.addCompletion(new BasicCompletion(provider, JAVA_KEY));

Where:

private String[] JAVA_KEY = { "1stword", "2ndword", "3rdword" } ;

etc.

Someone can help me?

Thanks in advice.

Top

cron