Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Incremental reconciling strategy synchronization
Incremental reconciling strategy synchronization [message #492085] Sun, 18 October 2009 11:21 Go to next message
Christoph Höger is currently offline Christoph HögerFriend
Messages: 40
Registered: July 2009
Member
Hi,

I am working on my incremental lexer that should be run from an
incremental reconciler. The basic stuff just works, but the
synchronization is a real problem.
I never can be sure that the IDocument content is valid (that is, it
maps to the dirty region event) Is there any way to stop eclipse from
updating that content when I am lexing it?

regards

Christoph
Re: Incremental reconciling strategy synchronization [message #492159 is a reply to message #492085] Mon, 19 October 2009 08:00 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
Christoph Höger wrote:
> Hi,
>
> I am working on my incremental lexer that should be run from an
> incremental reconciler. The basic stuff just works, but the
> synchronization is a real problem.
> I never can be sure that the IDocument content is valid (that is, it
> maps to the dirty region event) Is there any way to stop eclipse from
> updating that content when I am lexing it?
No, and you shouldn't do this. The user should always be able to
continue typing. The reconciler automatically aborts the current run if
the document gets changed.

Dani
>
> regards
>
> Christoph
Re: Incremental reconciling strategy synchronization [message #492418 is a reply to message #492085] Tue, 20 October 2009 12:05 Go to previous message
Ravi  is currently offline Ravi Friend
Messages: 27
Registered: July 2009
Junior Member
It is highly undesirable to disable document updates because you have some work to do. Incremental reconciliation is tricky to implement and i suggest you try and look for alternate solutions unless its completely unavoidable. The reconciliation has a progress monitor which you can use to stop doing work for previous document updates if a fresh one arrives. However when you start incremental reconciliation for the fresh document change, you should ensure that you are working on the all the unprocessed document changes till then.

A better idea is to enqueue document changes in a queue and work on it -- thread pool concept.

Hope this helps,
Ravi.
Previous Topic:'branding' at run time
Next Topic:How to disable renaming of a project programmatically.
Goto Forum:
  


Current Time: Fri Nov 28 20:51:38 GMT 2014

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

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