Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » problem in caret position
problem in caret position [message #226240] Tue, 07 August 2007 18:00
Eclipse UserFriend
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..
Previous Topic:how to add a button to toolbar in 3.3 C/C++ IDE
Next Topic:reading runtime classpath
Goto Forum:
  


Current Time: Tue Apr 23 07:49:25 GMT 2024

Powered by FUDForum. Page generated in 0.09500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top