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.

3 comments
Comment actions Permalink

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
Comment actions Permalink

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

0
Comment actions Permalink

thanks for sharing. i have just connected.

https://wminecraft.net/minecraft-xray-mod/

-1

Please sign in to leave a comment.