org.eclipse.xtext.ui.editor.reconciler
Class XtextDocumentReconcileStrategy

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy
All Implemented Interfaces:
org.eclipse.jface.text.reconciler.IReconcilingStrategy

public class XtextDocumentReconcileStrategy
extends java.lang.Object
implements org.eclipse.jface.text.reconciler.IReconcilingStrategy

Author:
Peter Friese - Initial contribution and API, Sven Efftinge, Sebastian Zarnekow

Constructor Summary
XtextDocumentReconcileStrategy()
           
 
Method Summary
 void reconcile(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion, org.eclipse.jface.text.IRegion subRegion)
          Activates incremental reconciling of the specified dirty region.
 void reconcile(org.eclipse.jface.text.IRegion region)
          Activates non-incremental reconciling.
 void setDocument(org.eclipse.jface.text.IDocument document)
          Tells this reconciling strategy on which document it will work.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtextDocumentReconcileStrategy

public XtextDocumentReconcileStrategy()
Method Detail

reconcile

public void reconcile(org.eclipse.jface.text.IRegion region)
Description copied from interface: org.eclipse.jface.text.reconciler.IReconcilingStrategy
Activates non-incremental reconciling. The reconciling strategy is just told that there are changes and that it should reconcile the given partition of the document most recently passed into IReconcilingStrategy.setDocument(IDocument).

Specified by:
reconcile in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy
Parameters:
region - the document partition to be reconciled

reconcile

public void reconcile(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion,
                      org.eclipse.jface.text.IRegion subRegion)
Description copied from interface: org.eclipse.jface.text.reconciler.IReconcilingStrategy
Activates incremental reconciling of the specified dirty region. As a dirty region might span multiple content types, the segment of the dirty region which should be investigated is also provided to this reconciling strategy. The given regions refer to the document passed into the most recent call of IReconcilingStrategy.setDocument(IDocument).

Specified by:
reconcile in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy
Parameters:
dirtyRegion - the document region which has been changed
subRegion - the sub region in the dirty region which should be reconciled

setDocument

public void setDocument(org.eclipse.jface.text.IDocument document)
Description copied from interface: org.eclipse.jface.text.reconciler.IReconcilingStrategy
Tells this reconciling strategy on which document it will work. This method will be called before any other method and can be called multiple times. The regions passed to the other methods always refer to the most recent document passed into this method.

Specified by:
setDocument in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy
Parameters:
document - the document on which this strategy will work