mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-97135 - assert: NoSwingUnderWriteAction.lambda$watchForEvents$
This commit is contained in:
+5
-5
@@ -27,6 +27,7 @@ import com.intellij.openapi.options.ConfigurationException;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.ui.DialogWrapper;
|
||||
import com.intellij.openapi.ui.LabeledComponent;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
import com.intellij.psi.*;
|
||||
@@ -85,13 +86,12 @@ public abstract class TypeMigrationDialog extends RefactoringDialog {
|
||||
setTitle(REFACTORING_NAME);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void canRun() throws ConfigurationException {
|
||||
if (myScopeChooserCombo.getSelectedScope() == null) throw new ConfigurationException("Scope is not chosen");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doAction() {
|
||||
if (myScopeChooserCombo.getSelectedScope() == null) {
|
||||
Messages.showErrorDialog("Scope is not chosen", "Error");
|
||||
return;
|
||||
}
|
||||
FindSettings.getInstance().setDefaultScopeName(myScopeChooserCombo.getSelectedScopeName());
|
||||
if (myRules == null) {
|
||||
myRules = new TypeMigrationRules();
|
||||
|
||||
Reference in New Issue
Block a user