In my eclipse plugin, I have a StyledText
object and IEditorReference
object. I also have a yCoordinate that I want to use to check which line number is below this coordinate:
int lineIndex = styledText.getLineIndex(yCoordinate);
This works fine, if there is no line folding applied. Therefore I'm looking for a method that takes either line folding into account, or that gives me back all the folded lines so that I can manually adjust the lineIndex
. What are my options?