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.

4 comments

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

0

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

Thanks a lot Yann.

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

0

Please sign in to leave a comment.