org.eclipse.xtext.ui.editor.syntaxcoloring
Class HighlightingHelper

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingHelper
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.util.IPropertyChangeListener, IHighlightingHelper

public class HighlightingHelper
extends java.lang.Object
implements IHighlightingHelper, org.eclipse.jface.util.IPropertyChangeListener

Highlighting helper. Initially copied from org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightingManager

Author:
Sebastian Zarnekow

Constructor Summary
HighlightingHelper()
           
 
Method Summary
 IPreferenceStoreAccess getPreferenceStoreAccessor()
           
 com.google.inject.Provider<HighlightingPresenter> getPresenterProvider()
           
 HighlightingReconciler getReconciler()
          Returns this hightlighter's reconciler.
 com.google.inject.Provider<HighlightingReconciler> getReconcilerProvider()
           
 void install(XtextEditor editor, XtextSourceViewer sourceViewer)
           
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
          Notification that a property has changed.
 void setPreferenceStoreAccessor(IPreferenceStoreAccess preferenceStoreAccessor)
           
 void setPresenterProvider(com.google.inject.Provider<HighlightingPresenter> presenterProvider)
           
 void setReconcilerProvider(com.google.inject.Provider<HighlightingReconciler> reconcilerProvider)
           
 void uninstall()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HighlightingHelper

public HighlightingHelper()
Method Detail

install

public void install(XtextEditor editor,
                    XtextSourceViewer sourceViewer)
Specified by:
install in interface IHighlightingHelper

uninstall

public void uninstall()
Specified by:
uninstall in interface IHighlightingHelper

getReconciler

public HighlightingReconciler getReconciler()
Returns this hightlighter's reconciler.

Returns:
the highlighter reconciler or null if none

setReconcilerProvider

public void setReconcilerProvider(com.google.inject.Provider<HighlightingReconciler> reconcilerProvider)

getReconcilerProvider

public com.google.inject.Provider<HighlightingReconciler> getReconcilerProvider()

setPresenterProvider

public void setPresenterProvider(com.google.inject.Provider<HighlightingPresenter> presenterProvider)

getPresenterProvider

public com.google.inject.Provider<HighlightingPresenter> getPresenterProvider()

setPreferenceStoreAccessor

public void setPreferenceStoreAccessor(IPreferenceStoreAccess preferenceStoreAccessor)

getPreferenceStoreAccessor

public IPreferenceStoreAccess getPreferenceStoreAccessor()

propertyChange

public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Description copied from interface: org.eclipse.jface.util.IPropertyChangeListener
Notification that a property has changed.

This method gets called when the observed object fires a property change event.

Specified by:
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListener
Parameters:
event - the property change event object describing which property changed and how