Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Error annotations lost in reconciler
Error annotations lost in reconciler [message #916933] Wed, 19 September 2012 16:55
Iulian Dragos is currently offline Iulian DragosFriend
Messages: 23
Registered: July 2009
Junior Member
Hi all,

I have a custom editor and I implemented 'report errors as you type', but every now and then my error squigglies (using JFace annotations) are not shown or linger after they should be removed.

I am using `MonoReconciler` with my implementation of `IReconcilingStrategy`. During the `reconcile` step I call `annotationModel.replaceAnnotations` to remove the old errors and add the new ones. Most of the times this works ok. Every now and then the updates are lost, and I notice the following:

- the red stamp on the left ruler disappears, but the red underlines stay
- on the next character I type, the underline disappears

I verified in the debugger that the annotations are correctly calculated. The underline disappear immediately after typing a character, and *not* after the 500ms of the reconciler. It looks like a lost UI update/redraw.

There must be a race condition somewhere (the reconciler runs in its own thread). Is there any documentation or hint about what am I doing wrong?
Previous Topic:toolbar does not wrap
Next Topic:Widget disposed exception when wizard closed using Return key
Goto Forum:
  


Current Time: Wed Nov 26 04:39:37 GMT 2014

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

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