org.eclipse.cdt.internal.ui.editor
Class SemanticHighlightingReconciler

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.editor.SemanticHighlightingReconciler
All Implemented Interfaces:
ICReconcilingListener

public class SemanticHighlightingReconciler
extends java.lang.Object
implements ICReconcilingListener

Semantic highlighting reconciler - Background thread implementation. Cloned from JDT.

Since:
4.0

Constructor Summary
SemanticHighlightingReconciler()
           
 
Method Summary
 void aboutToBeReconciled()
          Called before reconciling is started.
 void install(CEditor editor, org.eclipse.jface.text.source.ISourceViewer sourceViewer, SemanticHighlightingPresenter presenter, SemanticHighlighting[] semanticHighlightings, org.eclipse.cdt.internal.ui.editor.SemanticHighlightingManager.HighlightingStyle[] highlightings)
          Install this reconciler on the given editor, presenter and highlightings.
 void reconciled(org.eclipse.cdt.core.dom.ast.IASTTranslationUnit ast, boolean force, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
          Called after reconciling has been finished.
 void refresh()
          Refreshes the highlighting.
 void uninstall()
          Uninstall this reconciler from the editor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SemanticHighlightingReconciler

public SemanticHighlightingReconciler()
Method Detail

aboutToBeReconciled

public void aboutToBeReconciled()
Description copied from interface: ICReconcilingListener
Called before reconciling is started.

Specified by:
aboutToBeReconciled in interface ICReconcilingListener

reconciled

public void reconciled(org.eclipse.cdt.core.dom.ast.IASTTranslationUnit ast,
                       boolean force,
                       org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Description copied from interface: ICReconcilingListener
Called after reconciling has been finished.

Specified by:
reconciled in interface ICReconcilingListener
Parameters:
ast - the translation unit AST or null if the working copy was consistent or reconcilation has been cancelled
force - flag indicating whether the reconciler was invoked forcefully
progressMonitor - the progress monitor

install

public void install(CEditor editor,
                    org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                    SemanticHighlightingPresenter presenter,
                    SemanticHighlighting[] semanticHighlightings,
                    org.eclipse.cdt.internal.ui.editor.SemanticHighlightingManager.HighlightingStyle[] highlightings)
Install this reconciler on the given editor, presenter and highlightings.

Parameters:
editor - the editor
sourceViewer - the source viewer
presenter - the semantic highlighting presenter
semanticHighlightings - the semantic highlightings
highlightings - the highlightings

uninstall

public void uninstall()
Uninstall this reconciler from the editor


refresh

public void refresh()
Refreshes the highlighting.