Search in sources :

Example 1 with HighlightUsagesAction

use of com.intellij.codeInsight.highlighting.actions.HighlightUsagesAction in project intellij-community by JetBrains.

the class CodeInsightTestFixtureImpl method testHighlightUsages.

@NotNull
@Override
public RangeHighlighter[] testHighlightUsages(@NotNull final String... files) {
    configureByFiles(files);
    testAction(new HighlightUsagesAction());
    final Editor editor = getEditor();
    //HighlightUsagesHandler.invoke(getProject(), editor, getFile());
    return editor.getMarkupModel().getAllHighlighters();
}
Also used : com.intellij.openapi.fileEditor(com.intellij.openapi.fileEditor) HighlightUsagesAction(com.intellij.codeInsight.highlighting.actions.HighlightUsagesAction) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

HighlightUsagesAction (com.intellij.codeInsight.highlighting.actions.HighlightUsagesAction)1 com.intellij.openapi.fileEditor (com.intellij.openapi.fileEditor)1 NotNull (org.jetbrains.annotations.NotNull)1