| [news.eclipse.platform] Re: Easiest way getting the text under the mouse |
Grant Gayed wrote:
If your editor is a StyledText under the covers, and if you can get hold of it, then you can use StyledText.getOffsetAtLocation() to get the cursor's character offset, and then determine the content from there.
I don't know if there's a higher-level api for computing what you want, if there is then hopefully someone can follow up here with it.
Grant
Hi Grant,
I don't know how to use that...
I have functionality for getting the text at the carret position.
/Pelle