Completion with custom icons ?

Hi,

I'm using getVariants() in order to have completion in specific xml files and i'd like to know if it's possible to define custom icons for the lookup items.


Thank you.

0

have a look at LookupItem, I can post some sample code if you need help

0
Avatar
Permanently deleted user

Thanks Yann !

How do you know that ? Javadoc says "getVariants) Returns the array of String, PsiElement and/or CandidateInfo instances" ... Anyway thank you.


Another question, now i have my icon and my bean name (SpringFramework) but i want to have the class of the bean too (right aligned like in idea own completion for attributes). Do you have any clues ?

0

your LookupItem must look like this:

0
Avatar
Permanently deleted user

Thanks a lot Yann.

I've just released deaSpring 1.1 thanks to the infos you gave me.

0

请先登录再写评论。