GotoClassContributor and navigation item

Answered

Hi, I have implemented a GotoClassContributor that display my elements (I use an instance of NavigationItem).
Why my elements are not aligned with normal/java items and how to add the text+icon on the right ?

I certainly need to implement a different NavigationItem, but which one ? I can't find it.

thanks

0
3 comments

The implementation for Java class is found in com.intellij.psi.presentation.java.ClassPresentationProvider.

See com.intellij.ide.util.ModuleRendererFactory extension point to customize the presentation on the right side.

0

Thanks, I will look at ModuleRendererFactory

0

Exactly what I needed. still have a small alignment problem on the right but it’s ok, thank you

0

Please sign in to leave a comment.