1

I'm currently writing an Intellij-Plugin, which performs some static analyses to find mathematical formulas. (see image)

enter image description here

My result references to a specific line (see yellow mark). Currently I'm opening a custom JFrame to show the detected formula.

In the next version of this plugin i want to add a marker on the red marked position next to the line number. (line a breakpoint) A click on this marker should open a small/lightweight UI where i can render my formula (=JComponent) as shown in the picture below.

enter image description here

What intellij class should i look at?

1

1 Answer 1

2

LineMarkerProvider is what you are looking for.

Also there is a related tutorial.

Sign up to request clarification or add additional context in comments.

3 Comments

But how do i get the right PSI Element for this line?
I assumed that you know which PSI elements you want to equip with line marks. If not I recommend to install PsiViewer plugin and view PSI structure of code areas you are interested in. It seems that you should search for PsiExpression or one of it descending classes.
Ok :-/ well, i thought i could just mark the line by it's its offset (=line number).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.