Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] IReconcilierStrategy vs IDocumentListener

> Ok, thanks. So the main difference would be that the IReconcilierStrategy hooks IReconcilierStrategy onto a specific partitioning content-type.

No. The main difference is that the document listener is notified immediately when a change in the document happens. The reconciler runs asynchronously and updates the document based on changes in a model, e.g. the Java model.

Dani



From:        Mickael Istria <mistria@xxxxxxxxxx>
To:        platform-ui-dev@xxxxxxxxxxx
Date:        26.09.2016 11:29
Subject:        Re: [platform-ui-dev] IReconcilierStrategy vs IDocumentListener
Sent by:        platform-ui-dev-bounces@xxxxxxxxxxx




On 09/26/2016 11:16 AM, Daniel Megert wrote:
org.eclipse.jface.text.reconciler.IReconciler explains it.
Ok, thanks. So the main difference would be that the IReconcilierStrategy hooks IReconcilierStrategy onto a specific partitioning content-type.
As one of the goals and benefits of generic editor is to make partitioning optional for editors, it seems to me that we should then avoid those APIs and remain on document-based ones (then implementors can decide or not to use a partitioning and get to partition level).

--
Mickael Istria
Eclipse developer for
Red Hat Developers
My blog - My Tweets_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev


Back to the top