Search in sources :

Example 1 with LivePreviewController

use of com.intellij.find.impl.livePreview.LivePreviewController in project intellij-community by JetBrains.

the class FindInEditorTest method initFind.

private void initFind() {
    SearchResults searchResults = new SearchResults(getEditor(), getProject());
    myLivePreviewController = new LivePreviewController(searchResults, null, getTestRootDisposable());
    myFindModel.addObserver(findModel -> myLivePreviewController.updateInBackground(myFindModel, true));
    myLivePreviewController.on();
}
Also used : LivePreviewController(com.intellij.find.impl.livePreview.LivePreviewController) SearchResults(com.intellij.find.impl.livePreview.SearchResults)

Aggregations

LivePreviewController (com.intellij.find.impl.livePreview.LivePreviewController)1 SearchResults (com.intellij.find.impl.livePreview.SearchResults)1