Scrolling the document programmatically [message #218259] |
Wed, 27 June 2007 09:20 |
Eclipse User |
|
|
|
Originally posted by: hema.gandhi.appulse.com
I am working on a code in which the document reflects the changes made by
some other eclipse editor, its working fine but the only problem with this
is that the editor doesnot scroll to the position in the document in which
changes are being made.How can I achieve that?
Any pointer in this direction will highly be appreciated.
Thanks
Hema
|
|
|
|
Re: Scrolling the document programmatically [message #218337 is a reply to message #218278] |
Wed, 27 June 2007 12:37 |
Eclipse User |
|
|
|
Originally posted by: hema.gandhi.appulse.com
Daniel Megert wrote:
> hema wrote:
>> I am working on a code in which the document reflects the changes
>> made by some other eclipse editor, its working fine but the only
>> problem with this is that the editor doesnot scroll to the position in
>> the document in which changes are being made.How can I achieve that?
>>
>> Any pointer in this direction will highly be appreciated.
> First make sure that's really what the user expects. Normally when I
> edit at some place in editor A, then got to editor B and back to A I
> expect to be at the same place as I was when I left A. Anyway, if you
> still need this you have to
> 1. know where the change happens
> 2. reveal it by calling ITextEditor.selectAndReveal(...)
> Dani
>>
>> Thanks
>> Hema
>>
Thanks Daniel for your quick reply, it helps me.
|
|
|
Powered by
FUDForum. Page generated in 0.07158 seconds