JFace question: how to get caret position in text editor
posted 9 years ago
Hi all, I'm working on a simple Eclipse plugin that should insert some text into the active editor in response to a menu command which invokes an InputDialog. Everything works, including inserting the text, but I have run into one stumbling block: I cannot figure out how to insert the text at the current caret position.
Here is what I have so far:
Any idea how, given that, I can find the correct offset to begin my insert, based on the caret position?
Thanks! [ October 08, 2007: Message edited by: Phil Rhodes ]
A+, Network+, SCJP, SCWCD<br />preparing for SCBCD, SCEA, CompTIA I-Net+