| maintaining document positions [message #27670] |
Tue, 06 May 2003 04:02  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03313 seconds