public class Reconciler extends AbstractReconciler implements IReconcilerExtension
IReconciler.
The reconciler is configured with a set of reconciling strategies
each of which is responsible for a particular content type.
Usually, clients instantiate this class and configure it before using it.
IDocumentListener,
ITextInputListener,
DirtyRegion| Constructor and Description |
|---|
Reconciler()
Creates a new reconciler with the following configuration: it is
an incremental reconciler with a standard delay of 500 milliseconds.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDocumentPartitioning()
Returns the partitioning this reconciler is using.
|
IReconcilingStrategy |
getReconcilingStrategy(String contentType)
Returns the reconciling strategy registered with the reconciler
for the specified content type.
|
protected void |
initialProcess()
This method is called on startup of the background activity.
|
protected void |
process(DirtyRegion dirtyRegion)
Processes a dirty region.
|
protected void |
reconcilerDocumentChanged(IDocument document)
Hook called when the document whose contents should be reconciled
has been changed, i.e., the input document of the text viewer this
reconciler is installed on.
|
void |
setDocumentPartitioning(String partitioning)
Sets the document partitioning for this reconciler.
|
void |
setProgressMonitor(IProgressMonitor monitor)
Sets the progress monitor of this reconciler.
|
void |
setReconcilingStrategy(IReconcilingStrategy strategy,
String contentType)
Registers a given reconciling strategy for a particular content type.
|
aboutToBeReconciled, forceReconciling, getDocument, getProgressMonitor, getTextViewer, install, isIncrementalReconciler, reconcilerReset, setDelay, setIsAllowedToModifyDocument, setIsIncrementalReconciler, startReconciling, uninstallpublic Reconciler()
IDocumentExtension3.DEFAULT_PARTITIONING.public void setDocumentPartitioning(String partitioning)
partitioning - the document partitioning for this reconcilerpublic String getDocumentPartitioning()
IReconcilerExtensiongetDocumentPartitioning in interface IReconcilerExtensionpublic void setReconcilingStrategy(IReconcilingStrategy strategy, String contentType)
strategy - the reconciling strategy to register, or null to remove an existing onecontentType - the content type under which to registerpublic IReconcilingStrategy getReconcilingStrategy(String contentType)
IReconcilergetReconcilingStrategy in interface IReconcilercontentType - the content type for which to determine the reconciling strategynull if there is no such strategyprotected void process(DirtyRegion dirtyRegion)
null the whole
document is consider being dirty. The dirty region is partitioned by the
document and each partition is handed over to a reconciling strategy registered
for the partition's content type.process in class AbstractReconcilerdirtyRegion - the dirty region to be processedAbstractReconciler.process(DirtyRegion)protected void reconcilerDocumentChanged(IDocument document)
AbstractReconcilerreconcilerDocumentChanged in class AbstractReconcilerdocument - the new reconciler documentpublic void setProgressMonitor(IProgressMonitor monitor)
AbstractReconcilersetProgressMonitor in class AbstractReconcilermonitor - the monitor to be usedprotected void initialProcess()
AbstractReconcilerinitialProcess in class AbstractReconcilerGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.