Examples of addOccurrenceHighlights()


Examples of com.intellij.codeInsight.highlighting.HighlightManager.addOccurrenceHighlights()

        }
      }
    }
    //endregion

    highlightManager.addOccurrenceHighlights(
        editor, usages.toArray(new PsiElement[usages.size()]), textattributes, false, null);
    final WindowManager windowManager = WindowManager.getInstance();
    final StatusBar statusBar = windowManager.getStatusBar(project);
    assert statusBar != null;
    statusBar.setInfo("Press Esc to remove highlighting");
View Full Code Here

Examples of com.intellij.codeInsight.highlighting.HighlightManager.addOccurrenceHighlights()

        private void highlight(Project project, Editor editor, GoLiteralIdentifier identifierToInline) {
            HighlightManager manager = HighlightManager.getInstance(project);
            EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
            TextAttributes attributes = scheme.getAttributes(EditorColors.SEARCH_RESULT_ATTRIBUTES);
            TextAttributes writeAttributes = scheme.getAttributes(EditorColors.WRITE_SEARCH_RESULT_ATTRIBUTES);
            manager.addOccurrenceHighlights(editor, readUsages, attributes, true, null);
            manager.addOccurrenceHighlights(editor, writeUsages, writeAttributes, true, null);
            manager.addOccurrenceHighlights(editor, new PsiElement[]{identifierToInline}, writeAttributes, true, null);
        }
    }
}
View Full Code Here

Examples of com.intellij.codeInsight.highlighting.HighlightManager.addOccurrenceHighlights()

            HighlightManager manager = HighlightManager.getInstance(project);
            EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
            TextAttributes attributes = scheme.getAttributes(EditorColors.SEARCH_RESULT_ATTRIBUTES);
            TextAttributes writeAttributes = scheme.getAttributes(EditorColors.WRITE_SEARCH_RESULT_ATTRIBUTES);
            manager.addOccurrenceHighlights(editor, readUsages, attributes, true, null);
            manager.addOccurrenceHighlights(editor, writeUsages, writeAttributes, true, null);
            manager.addOccurrenceHighlights(editor, new PsiElement[]{identifierToInline}, writeAttributes, true, null);
        }
    }
}
View Full Code Here

Examples of com.intellij.codeInsight.highlighting.HighlightManager.addOccurrenceHighlights()

            EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
            TextAttributes attributes = scheme.getAttributes(EditorColors.SEARCH_RESULT_ATTRIBUTES);
            TextAttributes writeAttributes = scheme.getAttributes(EditorColors.WRITE_SEARCH_RESULT_ATTRIBUTES);
            manager.addOccurrenceHighlights(editor, readUsages, attributes, true, null);
            manager.addOccurrenceHighlights(editor, writeUsages, writeAttributes, true, null);
            manager.addOccurrenceHighlights(editor, new PsiElement[]{identifierToInline}, writeAttributes, true, null);
        }
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.