Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » PresentationReconciler getDamage(Partitioning change coverage wrongly used in getDamage method)
PresentationReconciler getDamage [message #496941] Wed, 11 November 2009 19:53 Go to next message
henrik sorensen is currently offline henrik sorensenFriend
Messages: 2
Registered: July 2009
Junior Member
I am not sure this is the correct forum.

For my editor I was experimenting with dynamic update of my outlinePage. To my surprise the outlinePage did not get updated as I would expect. After some debugging and reading of many lines of codes within the org.eclipse.jface.text plugin, I finally discovered that the PresentationReconciler class might be at fault.

I noticed that my partitioning scanner functioned as expected and also saw the correct document range that needed to be repaired in the getCoverage method of the DocumentPartitioningChangedEvent.

At the start of the PresentationReconciler getDamage method I added the following lines of code, and after that my dynamic update of the outline page worked as I would expect.

In package org.eclipse.jface.text.presentation.

[private IRegion getDamage(DocumentEvent e, boolean optimize) 
{ if ( optimize
    && fDocumentPartitioningChanged
    && fChangedDocumentPartitions!=null)
       return new Region(fChangedDocumentPartitions.getOffset()
                        ,fChangedDocumentPartitions.getLength());		


Can someone with more experience with the PresentationReconciler class comment on this?

What is the procedure to have this change accepted by the JFace project ?

thanks for your help
Henrik
Re: PresentationReconciler getDamage [message #497750 is a reply to message #496941] Fri, 13 November 2009 11:48 Go to previous message
henrik sorensen is currently offline henrik sorensenFriend
Messages: 2
Registered: July 2009
Junior Member
Quote:
I am not sure this is the correct forum

well given the number of replies, I think I can figure this out myself.

I created a bug report instead:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=295059

have fun
Henrik
Previous Topic:Cannot see image decorator
Next Topic:Re: Looking for JFace Databinding Approach
Goto Forum:
  


Current Time: Wed Apr 24 19:10:21 GMT 2024

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

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

Back to the top