a method to change current cursor position? [message #214568] |
Mon, 22 March 2004 21:57 |
Eclipse User |
|
|
|
Originally posted by: nilushi_sam.yahoo.com
Hi,
i can get the current cursor position through the following line of code
((ITextSelection)editor.getSelectionProvider().getSelection( )).getOffset();
please provide me a method which i can use to change the current cursor
position.
thanks in advance
|
|
|
|
Re: a method to change current cursor position? [message #215439 is a reply to message #214956] |
Wed, 24 March 2004 18:58 |
Eclipse User |
|
|
|
Originally posted by: nilushi_sam.yahoo.com
thanks for the reply, hope u'll be successful, will keep u updated with
any solution i get and hope that u'll do the same
regards
nilushi.
Michael Keppler wrote:
> nilushi schrieb:
> > please provide me a method which i can use to change the current cursor
> > position.
> I'm currently searching the same and used something like the following,
> but was not yet succesful with changing the position:
> TextSelection selection =new TextSelection(
> document,start,length);
> editor.getSelectionProvider().setSelection(selection);
> If you get a solution running, please provide your ideas.
> Ciao, Michael.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03502 seconds