mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
prohibit refactoring in dumb mode (IDEA-CR-1485)
This commit is contained in:
@@ -16,8 +16,10 @@
|
||||
package com.intellij.refactoring.ui;
|
||||
|
||||
import com.intellij.openapi.options.ConfigurationException;
|
||||
import com.intellij.openapi.project.DumbService;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.ui.DialogWrapper;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.refactoring.BaseRefactoringProcessor;
|
||||
import com.intellij.refactoring.RefactoringBundle;
|
||||
@@ -90,6 +92,11 @@ public abstract class RefactoringDialog extends DialogWrapper {
|
||||
|
||||
@Override
|
||||
protected final void doOKAction() {
|
||||
if (DumbService.isDumb(myProject)) {
|
||||
Messages.showMessageDialog(myProject, "Refactoring is not available while indexing is in progress", "Indexing", null);
|
||||
return;
|
||||
}
|
||||
|
||||
doAction();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user