Eclipse Text editor get cursor location
<p>I am developing a plugin that recommends code using eclipse plugin development environment (PDE). For now I'm working on designing the interface. The thing is I want to get the cursor location in the eclipse editor and open a JFrame at that position. I've tried to get the location with the help of documentation and forums and only able to get the offset till now or you can say line and column offset. I want to get it in a point(x,y) that represents a location. So any ideas how to get the cursor position?</p>