public class MonoReconciler extends AbstractReconciler
IReconciler.
The reconciler is configured with a single reconciling strategy
that is used independently from where a dirty region is located in the reconciler's
document.
Usually, clients instantiate this class and configure it before using it.
IDocumentListener,
ITextInputListener,
DirtyRegion| Constructor and Description |
|---|
MonoReconciler(IReconcilingStrategy strategy,
boolean isIncremental)
Creates a new reconciler that uses the same reconciling strategy to
reconcile its document independent of the type of the document's contents.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
setProgressMonitor(IProgressMonitor monitor)
Sets the progress monitor of this reconciler.
|
aboutToBeReconciled, forceReconciling, getDocument, getProgressMonitor, getTextViewer, install, isIncrementalReconciler, reconcilerReset, setDelay, setIsAllowedToModifyDocument, setIsIncrementalReconciler, startReconciling, uninstallpublic MonoReconciler(IReconcilingStrategy strategy, boolean isIncremental)
strategy - the reconciling strategy to be usedisIncremental - the indication whether strategy is incremental or notpublic IReconcilingStrategy getReconcilingStrategy(String contentType)
IReconcilercontentType - the content type for which to determine the reconciling strategynull if there is no such strategyprotected void process(DirtyRegion dirtyRegion)
AbstractReconcilernull 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 processedprotected 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.