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

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.editor.SemanticHighlightingManager
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.util.IPropertyChangeListener

public class SemanticHighlightingManager
extends java.lang.Object
implements org.eclipse.jface.util.IPropertyChangeListener

Semantic highlighting manager. Cloned from JDT.

Since:
4.0

Nested Class Summary
static class SemanticHighlightingManager.HighlightedRange
          Highlighted ranges.
 
Constructor Summary
SemanticHighlightingManager()
           
 
Method Summary
 void install(CEditor editor, CSourceViewer sourceViewer, IColorManager colorManager, org.eclipse.jface.preference.IPreferenceStore preferenceStore)
          Install the semantic highlighting on the given editor infrastructure
 void install(CSourceViewer sourceViewer, IColorManager colorManager, org.eclipse.jface.preference.IPreferenceStore preferenceStore, SemanticHighlightingManager.HighlightedRange[][] hardcodedRanges)
          Install the semantic highlighting on the given source viewer infrastructure.
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
           
 void refresh()
          Force refresh of highlighting.
 void uninstall()
          Uninstall the semantic highlighting
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SemanticHighlightingManager

public SemanticHighlightingManager()
Method Detail

install

public void install(CEditor editor,
                    CSourceViewer sourceViewer,
                    IColorManager colorManager,
                    org.eclipse.jface.preference.IPreferenceStore preferenceStore)
Install the semantic highlighting on the given editor infrastructure

Parameters:
editor - The C editor
sourceViewer - The source viewer
colorManager - The color manager
preferenceStore - The preference store

install

public void install(CSourceViewer sourceViewer,
                    IColorManager colorManager,
                    org.eclipse.jface.preference.IPreferenceStore preferenceStore,
                    SemanticHighlightingManager.HighlightedRange[][] hardcodedRanges)
Install the semantic highlighting on the given source viewer infrastructure. No reconciliation will be performed.

Parameters:
sourceViewer - the source viewer
colorManager - the color manager
preferenceStore - the preference store
hardcodedRanges - the hard-coded ranges to be highlighted

uninstall

public void uninstall()
Uninstall the semantic highlighting


propertyChange

public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Specified by:
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListener

refresh

public void refresh()
Force refresh of highlighting.