Search in sources :

Example 11 with FindManager

use of com.intellij.find.FindManager in project intellij-community by JetBrains.

the class HighlightHandlerBase method setupFindModel.

static void setupFindModel(final Project project) {
    final FindManager findManager = FindManager.getInstance(project);
    FindModel model = findManager.getFindNextModel();
    if (model == null) {
        model = findManager.getFindInFileModel();
    }
    model.setSearchHighlighters(true);
    findManager.setFindWasPerformed();
    findManager.setFindNextModel(model);
}
Also used : FindManager(com.intellij.find.FindManager) FindModel(com.intellij.find.FindModel)

Aggregations

FindManager (com.intellij.find.FindManager)11 FindModel (com.intellij.find.FindModel)8 Project (com.intellij.openapi.project.Project)6 StatusBar (com.intellij.openapi.wm.StatusBar)3 HighlightManager (com.intellij.codeInsight.highlighting.HighlightManager)2 FindResult (com.intellij.find.FindResult)2 Application (com.intellij.openapi.application.Application)2 CommandProcessor (com.intellij.openapi.command.CommandProcessor)2 Editor (com.intellij.openapi.editor.Editor)2 EditorColorsManager (com.intellij.openapi.editor.colors.EditorColorsManager)2 EditorColorsScheme (com.intellij.openapi.editor.colors.EditorColorsScheme)2 TextAttributes (com.intellij.openapi.editor.markup.TextAttributes)2 FileEditor (com.intellij.openapi.fileEditor.FileEditor)2 FileEditorManager (com.intellij.openapi.fileEditor.FileEditorManager)2 WindowManager (com.intellij.openapi.wm.WindowManager)2 PsiElement (com.intellij.psi.PsiElement)2 Content (com.intellij.ui.content.Content)2 UsageInfo (com.intellij.usageView.UsageInfo)2 FindSettings (com.intellij.find.FindSettings)1 FindInProjectUtil (com.intellij.find.impl.FindInProjectUtil)1