problem in caret position [message #226240] |
Tue, 07 August 2007 18:00 |
Eclipse User |
|
|
|
Originally posted by: checknaliniasha.yahoo.com
Hi all,
I have created a class in which there is a replace method ( i.e.
(IDocument) doc.replace(char,30) ) .this method is working fine on the
document, but the problem is that the caret position is not changing
accordingly. Means cursor is not blinking at right position.
I see that the StyledText class has a setCaretOffset but I don't know
how to get an instance of this class. My action has access to an
IWorkbenchWindow instance, from which I have obtained a ITextEditor
instance and an IDocument instance but I can't see where to go next.
I will be thankful if any one can please suggest how to solve the caret
position problem..
|
|
|
Powered by
FUDForum. Page generated in 0.09500 seconds