Reputation: 301
I'd like to add extra visual elements inside the Java text editor of IntelliJ, more specifically on top of classes and methods declarations. Things like indicators and links.
The best example is what Microsoft has done in Visual Studio with what they call CodeLens:
The closest solution I can think of is using Line Markers (displayed in the gutter) but it's far from the user experience I want to have.
Are there any IntelliJ plugins that have done this before?
Any pointers to give me somewhere to start?
Upvotes: 1
Views: 133
Reputation: 97258
This is not supported by the IntelliJ IDEA editor API. You can try using a JLayeredPane to do custom painting on top of an editor, but this would be fairly difficult to implement and fragile.
Upvotes: 2