Search in sources :

Example 1 with ReplaceInProjectManager

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

the class ReplaceInPathAction method actionPerformed.

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

Aggregations

ReplaceInProjectManager (com.intellij.find.replaceInProject.ReplaceInProjectManager)1 Project (com.intellij.openapi.project.Project)1