public abstract class TextEditorHighlightingPass extends java.lang.Object implements HighlightingPass
Modifier and Type | Field and Description |
---|---|
static TextEditorHighlightingPass[] |
EMPTY_ARRAY |
protected Document |
myDocument |
protected Project |
myProject |
Modifier | Constructor and Description |
---|---|
protected |
TextEditorHighlightingPass(Project project,
Document document) |
protected |
TextEditorHighlightingPass(Project project,
Document document,
boolean runIntentionPassAfter) |
public static final TextEditorHighlightingPass[] EMPTY_ARRAY
protected final Document myDocument
protected final Project myProject
protected TextEditorHighlightingPass(Project project, Document document, boolean runIntentionPassAfter)
public final void collectInformation(ProgressIndicator progress)
HighlightingPass
collectInformation
in interface HighlightingPass
progress
- to check if highlighting process is cancelled. Pass is to check progress.isCanceled() as often as possible and
throw ProcessCanceledException
if true
is returned.
See also ProgressIndicator.checkCanceled()
.public EditorColorsScheme getColorsScheme()
public void setColorsScheme(EditorColorsScheme colorsScheme)
protected boolean isDumbMode()
protected boolean isValid()
public final void applyInformationToEditor()
HighlightingPass
applyInformationToEditor
in interface HighlightingPass
public abstract void doCollectInformation(ProgressIndicator progress)
public abstract void doApplyInformationToEditor()
public final int getId()
public final void setId(int id)
public java.util.List<HighlightInfo> getInfos()
public final int [] getCompletionPredecessorIds()
public final void setCompletionPredecessorIds(int [] completionPredecessorIds)
public Document getDocument()
public final int [] getStartingPredecessorIds()
public final void setStartingPredecessorIds(int [] startingPredecessorIds)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isRunIntentionPassAfter()