How to get the logical position of run line marker.

Answered

Hi, i am developing a plugin, and there is some trouble that i don't know how to get the logical position(Line of the virtual file navigation) of my 'RunLineMarkerInfo'(it's an icon on the Navigation). Please help.

1
3 comments

You can obtain the associated Element via com.intellij.codeInsight.daemon.LineMarkerInfo#getElement

take its offset and obtain line number via com.intellij.openapi.editor.Document#getLineNumber

See also https://plugins.jetbrains.com/docs/intellij/coordinates-system.html

1

Yann Cebron Thank you, it truly help me a lot, my problem is solved. 

0

Please sign in to leave a comment.