Search in sources :

Example 31 with FindModel

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

the class GrFindManagerTest method testFindInShellCommentsOfGroovy.

public void testFindInShellCommentsOfGroovy() {
    FindModel findModel = FindManagerTestUtils.configureFindModel("done");
    findModel.setWholeWordsOnly(true);
    findModel.setInCommentsOnly(true);
    String text = "#! done done done\n";
    FindManagerTestUtils.runFindForwardAndBackward(myFindManager, findModel, text, "groovy");
}
Also used : FindModel(com.intellij.find.FindModel)

Aggregations

FindModel (com.intellij.find.FindModel)31 FindManager (com.intellij.find.FindManager)8 Project (com.intellij.openapi.project.Project)7 UsageInfo (com.intellij.usageView.UsageInfo)6 FindUsagesProcessPresentation (com.intellij.usages.FindUsagesProcessPresentation)5 EditorSearchSession (com.intellij.find.EditorSearchSession)4 Editor (com.intellij.openapi.editor.Editor)4 VirtualFile (com.intellij.openapi.vfs.VirtualFile)4 FindResult (com.intellij.find.FindResult)3 StatusBar (com.intellij.openapi.wm.StatusBar)3 HighlightManager (com.intellij.codeInsight.highlighting.HighlightManager)2 Application (com.intellij.openapi.application.Application)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 FileEditorManager (com.intellij.openapi.fileEditor.FileEditorManager)2 Module (com.intellij.openapi.module.Module)2 WindowManager (com.intellij.openapi.wm.WindowManager)2 PsiClass (com.intellij.psi.PsiClass)2 PsiElement (com.intellij.psi.PsiElement)2