Search in sources :

Example 1 with FindInProjectManager

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

the class FindInPathAction method actionPerformed.

@Override
public void actionPerformed(AnActionEvent e) {
    DataContext dataContext = e.getDataContext();
    Project project = e.getData(CommonDataKeys.PROJECT);
    FindInProjectManager findManager = FindInProjectManager.getInstance(project);
    if (!findManager.isEnabled()) {
        showNotAvailableMessage(e, project);
        return;
    }
    findManager.findInProject(dataContext);
}
Also used : Project(com.intellij.openapi.project.Project) FindInProjectManager(com.intellij.find.findInProject.FindInProjectManager)

Aggregations

FindInProjectManager (com.intellij.find.findInProject.FindInProjectManager)1 Project (com.intellij.openapi.project.Project)1