How do I show a popup like auto-popup code completion in own plugins?

已回答

How do I show a popup like auto-popup code completion, and dynamic change the items?

LookupManager.getInstance(project).showLookup(editor, ...) 

can show the popup, but I can not change the items.

Thanks!

0
正式评论

There's no such possibility in the current API. You can call LookupImpl#getList and manipulate it directly, but we make no guarantees it won't be broken in future releases. Alternatively, you can create your own popup (e.g. by subclassing LightweightHint) and manage it manually.

请先登录再写评论。