Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Scrolling the document programmatically
Scrolling the document programmatically [message #218259] Wed, 27 June 2007 09:20 Go to next message
Eclipse UserFriend
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 #218278 is a reply to message #218259] Wed, 27 June 2007 09:31 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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
>
Re: Scrolling the document programmatically [message #218337 is a reply to message #218278] Wed, 27 June 2007 12:37 Go to previous message
Eclipse UserFriend
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.
Previous Topic:programmatically generate button click action
Next Topic:Edit Eclipse "Workspace Launcher"
Goto Forum:
  


Current Time: Fri Mar 29 11:58:06 GMT 2024

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

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

Back to the top