posted 10 years ago
I'm trying to make field-assisting for a Text widget I'm using in a SWT/JFace application.
I have a ModifyListener added on the Text component, and when this is triggered by a ModifyEvent, the setAutoCompletion() method down here and the next method are called:
The problem is that it works only after typing at least two characters. This means that if I have "387" as suggestion, I must type '3' and after that, '8'. The popup appears only with the second '8' character.
After that, it works always as expected, but I don't know why the first time the Text receives the event it doesn't work. I've been looking in "stackoverflow" and in Google but haven't found anything.