public abstract class WorkingCopyReconciler
extends org.eclipse.jface.text.reconciler.AbstractReconciler
Constructor and Description |
---|
WorkingCopyReconciler(IWorkingCopyManager workingCopyManager)
Creates a new reconciler that reconciles the working copy provided
by the given manager.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addElementChangeListener(IElementChangeListener listener)
Registers the given element change listener with the underlying model.
|
protected void |
elementChanged(IElementChangeEvent event)
Notifies that the reconciler is affected in some way
by the given element change event.
|
protected void |
forceReconciling() |
protected java.lang.Object |
getReconcilerLock()
Returns the mutex for the reconciler.
|
org.eclipse.jface.text.reconciler.IReconcilingStrategy |
getReconcilingStrategy(java.lang.String contentType) |
protected void |
initialProcess() |
void |
install(org.eclipse.jface.text.ITextViewer textViewer) |
protected boolean |
isActive()
Returns whether this reconciler is currently active.
|
protected boolean |
isAffectedBy(IElementChangeEvent event)
Returns whether the reconciler is affected in some way
by the given element change event.
|
protected boolean |
isAffectedBy(IElementDelta delta,
ISourceFile workingCopy)
Returns whether the reconciler is affected by the given delta
with regard to the given working copy.
|
protected void |
process(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion) |
protected void |
reconcilerDocumentChanged(org.eclipse.jface.text.IDocument newDocument) |
protected abstract void |
removeElementChangeListener(IElementChangeListener listener)
Removes the given element change listener from the underlying model.
|
protected void |
setActive(boolean active)
Indicates a change in the active state of this reconciler.
|
void |
setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
setReconcilingStrategy(org.eclipse.jface.text.reconciler.IReconcilingStrategy strategy)
Sets the reconciling strategy that is to be used by this reconciler.
|
void |
uninstall() |
aboutToBeReconciled, getDocument, getProgressMonitor, getTextViewer, isIncrementalReconciler, isRunningInReconcilerThread, reconcilerReset, setDelay, setIsAllowedToModifyDocument, setIsIncrementalReconciler, startReconciling
public WorkingCopyReconciler(IWorkingCopyManager workingCopyManager)
workingCopyManager
- the working copy manager (not null
)public void setReconcilingStrategy(org.eclipse.jface.text.reconciler.IReconcilingStrategy strategy)
strategy
- the reconciling strategy (not null
)public void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
setProgressMonitor
in class org.eclipse.jface.text.reconciler.AbstractReconciler
public void install(org.eclipse.jface.text.ITextViewer textViewer)
install
in interface org.eclipse.jface.text.reconciler.IReconciler
install
in class org.eclipse.jface.text.reconciler.AbstractReconciler
public void uninstall()
uninstall
in interface org.eclipse.jface.text.reconciler.IReconciler
uninstall
in class org.eclipse.jface.text.reconciler.AbstractReconciler
public org.eclipse.jface.text.reconciler.IReconcilingStrategy getReconcilingStrategy(java.lang.String contentType)
protected void initialProcess()
initialProcess
in class org.eclipse.jface.text.reconciler.AbstractReconciler
protected void process(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion)
process
in class org.eclipse.jface.text.reconciler.AbstractReconciler
protected void forceReconciling()
forceReconciling
in class org.eclipse.jface.text.reconciler.AbstractReconciler
protected void reconcilerDocumentChanged(org.eclipse.jface.text.IDocument newDocument)
reconcilerDocumentChanged
in class org.eclipse.jface.text.reconciler.AbstractReconciler
protected java.lang.Object getReconcilerLock()
null
)protected abstract void addElementChangeListener(IElementChangeListener listener)
listener
- never null
protected abstract void removeElementChangeListener(IElementChangeListener listener)
listener
- never null
protected boolean isAffectedBy(IElementChangeEvent event)
event
- never null
true
if the reconciler is affected
by the given element change event, false
otherwiseprotected boolean isAffectedBy(IElementDelta delta, ISourceFile workingCopy)
delta
- never null
workingCopy
- may be null
true
if the reconciler is affected
by the given delta, false
otherwiseprotected void elementChanged(IElementChangeEvent event)
Note This method may be called in any thread. The event object (and the delta within it) is valid only for the duration of the invocation of this method.
event
- never null
protected boolean isActive()
true
if this reconciler is currently active,
false
otherwiseprotected void setActive(boolean active)
active
- the boolean value to set for the reconciler active state