Not working as expected

Post a reply

: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: Not working as expected

Re: Not working as expected

Post by Debels » Tue Mar 04, 2014 10:06 pm

oh, thanks a lot

Re: Not working as expected

Post by robert » Thu Feb 27, 2014 3:21 am

On your CompletionProvider, in order to make the popups appear on "regular" characters (i.e. not just "."), you'll need to call:

provider.setAutoActivationRules(true, "._")

This tells the system to display the completion choices on all letters and digits, as well as "." and "_".

Not working as expected

Post by Debels » Wed Feb 19, 2014 1:16 am

So I have a couple of problems regarding AutoCompletion, I have the following:

java code:

AutoCompletion ac = new AutoCompletion(provider);
ac.setTriggerKey(KeyStroke.getKeyStroke("control SPACE"));

From what I read on the website its supposed to show the auto complete window when you stop typing for 1/2 second, but no window pops up. What am I doing wrong?

Also when I write a token next to a parenthesis or any similar it doesn't recognize it, is there a way around this?

Thanks for reading,