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);
}
Aggregations