Code Completion Popup Focus

Yet Another Stupid Question:

We've got a CompletionContributer that implements things like method completion.  I notice that in the Java editor, the code completion popup instantly has focus and, if you hit return, it inserts the first entry in the code completion popup.  In our case, the popup does not have focus: you have to manually hit the down arrow to give it focus, and then it acts like the java editor code completion window.

Any tips on how to get the Java code completion popup behavior in our code completion?

Thanks,
Carson

1 comment
Comment actions Permalink

Hello Carson,

See the CompletionConfidence class. (And I don't see anything stupid about
this question. :) )

Yet Another Stupid Question:

We've got a CompletionContributer that implements things like method
completion.  I notice that in the Java editor, the code completion
popup instantly has focus and, if you hit return, it inserts the first
entry in the code completion popup.  In our case, the popup does not
have focus: you have to manually hit the down arrow to give it focus,
and then it acts like the java editor code completion window.

Any tips on how to get the Java code completion popup behavior in our
code completion?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.