public class WorkingCopyReconcilingStrategy
extends java.lang.Object
implements org.eclipse.jface.text.reconciler.IReconcilingStrategy, org.eclipse.jface.text.reconciler.IReconcilingStrategyExtension
Constructor and Description |
---|
WorkingCopyReconcilingStrategy(IWorkingCopyManager workingCopyManager)
Creates a new working copy reconciling strategy with the given
working copy manager.
|
Modifier and Type | Method and Description |
---|---|
void |
initialReconcile() |
void |
reconcile(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion,
org.eclipse.jface.text.IRegion subRegion) |
void |
reconcile(org.eclipse.jface.text.IRegion partition) |
protected void |
reconcile(ISourceFile workingCopy,
boolean initialReconcile,
org.eclipse.core.runtime.IProgressMonitor monitor)
Reconciles the given working copy.
|
void |
setDocument(org.eclipse.jface.text.IDocument document) |
void |
setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor) |
public WorkingCopyReconcilingStrategy(IWorkingCopyManager workingCopyManager)
workingCopyManager
- not null
public void setDocument(org.eclipse.jface.text.IDocument document)
setDocument
in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy
public void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
setProgressMonitor
in interface org.eclipse.jface.text.reconciler.IReconcilingStrategyExtension
public final void initialReconcile()
This implementation delegates to reconcile(ISourceFile, boolean,
IProgressMonitor)
, passing the working copy for the reconciling strategy's
document and indicating that this is the initial reconcile; any exceptions
are logged and not rethrown.
initialReconcile
in interface org.eclipse.jface.text.reconciler.IReconcilingStrategyExtension
public final void reconcile(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion, org.eclipse.jface.text.IRegion subRegion)
This implementation delegates to reconcile(ISourceFile, boolean,
IProgressMonitor)
, passing the working copy for the reconciling strategy's
document; any exceptions are logged and not rethrown.
reconcile
in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy
public final void reconcile(org.eclipse.jface.text.IRegion partition)
This implementation delegates to reconcile(ISourceFile, boolean,
IProgressMonitor)
, passing the working copy for the reconciling strategy's
document; any exceptions are logged and not rethrown.
reconcile
in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy
protected void reconcile(ISourceFile workingCopy, boolean initialReconcile, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
This implementation invokes Elements.
.
reconcile
(workingCopy, monitor)
workingCopy
- never null
initialReconcile
- true
if this is the initial reconcile,
and false
otherwisemonitor
- a progress monitor, or null
if progress reporting is not desired. The caller must not rely on
IProgressMonitor.done()
having been called by the receiverorg.eclipse.core.runtime.CoreException
- if the working copy could not be reconciledorg.eclipse.core.runtime.OperationCanceledException
- if this method is canceledCopyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0