Class MonoReconciler
java.lang.Object
org.eclipse.jface.text.reconciler.AbstractReconciler
org.eclipse.jface.text.reconciler.MonoReconciler
- All Implemented Interfaces:
- ITextViewerLifecycle,- IReconciler
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.
- Since:
- 2.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMonoReconciler(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.
- 
Method SummaryModifier and TypeMethodDescriptiongetReconcilingStrategy(String contentType) Returns the reconciling strategy registered with the reconciler for the specified content type.protected voidThis method is called on startup of the background activity.voidinstall(ITextViewer textViewer) Installs the reconciler on the given text viewer.protected voidprocess(DirtyRegion dirtyRegion) Processes a dirty region.protected voidreconcilerDocumentChanged(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.voidsetProgressMonitor(IProgressMonitor monitor) Sets the progress monitor of this reconciler.voidRemoves the reconciler from the text viewer it has previously been installed on.Methods inherited from class org.eclipse.jface.text.reconciler.AbstractReconcileraboutToBeReconciled, aboutToWork, forceReconciling, getDocument, getProgressMonitor, getTextViewer, isIncrementalReconciler, isRunningInReconcilerThread, reconcilerReset, setDelay, setIsAllowedToModifyDocument, setIsIncrementalReconciler, signalWaitForFinish, startReconciling
- 
Constructor Details- 
MonoReconcilerCreates a new reconciler that uses the same reconciling strategy to reconcile its document independent of the type of the document's contents.- Parameters:
- strategy- the reconciling strategy to be used
- isIncremental- the indication whether strategy is incremental or not
 
 
- 
- 
Method Details- 
getReconcilingStrategyDescription copied from interface:IReconcilerReturns the reconciling strategy registered with the reconciler for the specified content type.- Parameters:
- contentType- the content type for which to determine the reconciling strategy
- Returns:
- the reconciling strategy registered for the given content type, or
                nullif there is no such strategy
 
- 
processDescription copied from class:AbstractReconcilerProcesses a dirty region. If the dirty region isnullthe 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.- Specified by:
- processin class- AbstractReconciler
- Parameters:
- dirtyRegion- the dirty region to be processed
 
- 
reconcilerDocumentChangedDescription copied from class:AbstractReconcilerHook 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.- Specified by:
- reconcilerDocumentChangedin class- AbstractReconciler
- Parameters:
- document- the new reconciler document
 
- 
setProgressMonitorDescription copied from class:AbstractReconcilerSets the progress monitor of this reconciler.- Overrides:
- setProgressMonitorin class- AbstractReconciler
- Parameters:
- monitor- the monitor to be used
 
- 
initialProcessprotected void initialProcess()Description copied from class:AbstractReconcilerThis 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.- Overrides:
- initialProcessin class- AbstractReconciler
 
- 
installDescription copied from interface:IReconcilerInstalls the reconciler on the given text viewer. After this method has been finished, the reconciler is operational, i.e., it works without requesting further client actions untiluninstallis called.- Specified by:
- installin interface- IReconciler
- Specified by:
- installin interface- ITextViewerLifecycle
- Overrides:
- installin class- AbstractReconciler
- Parameters:
- textViewer- the viewer on which the reconciler is installed
 
- 
uninstallpublic void uninstall()Description copied from interface:IReconcilerRemoves the reconciler from the text viewer it has previously been installed on.- Specified by:
- uninstallin interface- IReconciler
- Specified by:
- uninstallin interface- ITextViewerLifecycle
- Overrides:
- uninstallin class- AbstractReconciler
 
 
-