Eclipse Platform
2.0

org.eclipse.jface.text.reconciler
Interface IReconcilingStrategy


public interface IReconcilingStrategy

A reconciling strategy is used by an reconciler to reconcile a model based on text of a particular content type. It provides methods for incremental as well as non-incremental reconciling.

This interface must be implemented by clients. Implementers should be registered with a reconciler in order get involved in the reconciling process.


Method Summary
 void reconcile(DirtyRegion dirtyRegion, IRegion subRegion)
          Activates incremental reconciling of the specified dirty region.
 void reconcile(IRegion partition)
          Activates non-incremental reconciling.
 void setDocument(IDocument document)
          Tells this reconciling strategy on which document it will work.
 

Method Detail

setDocument

public void setDocument(IDocument document)
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.

Parameters:
document - the document on which this strategy will work

reconcile

public void reconcile(DirtyRegion dirtyRegion,
                      IRegion subRegion)
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 setDocument.

Parameters:
dirtyRegion - the document region which has been changed
subRegion - the sub region in the dirty region which should be reconciled

reconcile

public void reconcile(IRegion partition)
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 setDocument.

Parameters:
partition - the document partition to be reconciled

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.