- All Implemented Interfaces:
public class MonoReconciler extends AbstractReconciler
Standard implementation of
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.
Method SummaryModifier and TypeMethodDescriptionReturns the reconciling strategy registered with the reconciler for the specified content type.
protected voidThis method is called on startup of the background activity.
protected voidProcesses a dirty region.
protected voidHook 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.
voidSets the progress monitor of this reconciler.
Methods inherited from class org.eclipse.jface.text.reconciler.AbstractReconciler
aboutToBeReconciled, aboutToWork, forceReconciling, getDocument, getProgressMonitor, getTextViewer, install, isIncrementalReconciler, isRunningInReconcilerThread, reconcilerReset, setDelay, setIsAllowedToModifyDocument, setIsIncrementalReconciler, signalWaitForFinish, startReconciling, uninstall
(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.
strategy- the reconciling strategy to be used
isIncremental- the indication whether strategy is incremental or not
getReconcilingStrategyDescription copied from interface:
IReconcilerReturns the reconciling strategy registered with the reconciler for the specified content type.
contentType- the content type for which to determine the reconciling strategy
- the reconciling strategy registered for the given content type, or
nullif there is no such strategy
processprotected void process
(DirtyRegion dirtyRegion)Processes a dirty region. If the dirty region is
nullthe 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.
reconcilerDocumentChangedprotected 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. Usually, subclasses use this hook to inform all their reconciling strategies about the change.
setProgressMonitorpublic void setProgressMonitor
(IProgressMonitor monitor)Sets the progress monitor of this reconciler.
initialProcessprotected void initialProcess()This method is called on startup of the background activity. It is called only once during the life time of the reconciler. Clients may reimplement this method.