Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » maintaining document positions
maintaining document positions [message #27670] Tue, 06 May 2003 04:02 Go to next message
Eclipse UserFriend
Originally posted by: christian.sell.netcologne.de

Hello all,

I have an editor which maintains a list of positions of tokens of a
certain type, as they are encountered during scanning (presentation
reconciler, etc.). Now my problem is that I need to sync my position
information with the changes applied to the document during editing. The
mechanics obviously are all there in the Document framework classes, but
I havent been able to figure out how to properly get at them, or hook
into them.
Ideally, I would want to get Position objects from the Document which
would be automatically maintained and always reflect the correct offset.

(How) is this possible? any help?
thanks,
Christian
Re: maintaining document positions [message #27692 is a reply to message #27670] Tue, 06 May 2003 06:42 Go to previous message
Eclipse UserFriend
I think i solved my problem - by *adding* Position objects to the
document. Works well.

Christian Sell wrote:
> Hello all,
>
> I have an editor which maintains a list of positions of tokens of a
> certain type, as they are encountered during scanning (presentation
> reconciler, etc.). Now my problem is that I need to sync my position
> information with the changes applied to the document during editing. The
> mechanics obviously are all there in the Document framework classes, but
> I havent been able to figure out how to properly get at them, or hook
> into them.
> Ideally, I would want to get Position objects from the Document which
> would be automatically maintained and always reflect the correct offset.
>
> (How) is this possible? any help?
> thanks,
> Christian
>
Previous Topic:install plug-in
Next Topic:Build Eclipse from CVS
Goto Forum:
  


Current Time: Sun Oct 26 17:45:36 EDT 2025

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

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

Back to the top