use of com.intellij.codeHighlighting.RainbowHighlighter in project intellij-community by JetBrains.
the class RainbowVisitor method analyze.
@Override
public boolean analyze(@NotNull PsiFile file, boolean updateWholeFile, @NotNull HighlightInfoHolder holder, @NotNull Runnable action) {
myHolder = holder;
myRainbowHighlighter = new RainbowHighlighter(myHolder.getColorsScheme());
try {
action.run();
} finally {
myHolder = null;
myRainbowHighlighter = null;
}
return true;
}
Aggregations