|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.editor.InactiveCodeHighlighting
public class InactiveCodeHighlighting
Paints code lines disabled by preprocessor directives (#ifdef etc.) with a configurable background color (default light gray).
LineBackgroundPainter
Constructor Summary | |
---|---|
InactiveCodeHighlighting(java.lang.String highlightKey)
Create a highlighter for the given key. |
Method Summary | |
---|---|
void |
aboutToBeReconciled()
Called before reconciling is started. |
void |
inputDocumentAboutToBeChanged(org.eclipse.jface.text.IDocument oldInput,
org.eclipse.jface.text.IDocument newInput)
|
void |
inputDocumentChanged(org.eclipse.jface.text.IDocument oldInput,
org.eclipse.jface.text.IDocument newInput)
|
void |
install(CEditor editor,
LineBackgroundPainter lineBackgroundPainter)
Install this highlighting on the given editor and line background painter. |
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()
Force refresh. |
void |
uninstall()
Uninstall this highlighting from the editor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InactiveCodeHighlighting(java.lang.String highlightKey)
highlightKey
- Method Detail |
---|
public void install(CEditor editor, LineBackgroundPainter lineBackgroundPainter)
editor
- lineBackgroundPainter
- public void uninstall()
public void refresh()
public void aboutToBeReconciled()
ICReconcilingListener
aboutToBeReconciled
in interface ICReconcilingListener
public void reconciled(org.eclipse.cdt.core.dom.ast.IASTTranslationUnit ast, boolean force, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
ICReconcilingListener
reconciled
in interface ICReconcilingListener
ast
- the translation unit AST or null
if the working
copy was consistent or reconcilation has been cancelledforce
- flag indicating whether the reconciler was invoked forcefullyprogressMonitor
- the progress monitorpublic void inputDocumentAboutToBeChanged(org.eclipse.jface.text.IDocument oldInput, org.eclipse.jface.text.IDocument newInput)
inputDocumentAboutToBeChanged
in interface org.eclipse.jface.text.ITextInputListener
public void inputDocumentChanged(org.eclipse.jface.text.IDocument oldInput, org.eclipse.jface.text.IDocument newInput)
inputDocumentChanged
in interface org.eclipse.jface.text.ITextInputListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |