EA-97135 - assert: NoSwingUnderWriteAction.lambda$watchForEvents$

This commit is contained in:
Anna.Kozlova
2017-02-17 19:37:21 +01:00
parent c64b7b9c59
commit 85f4eb275a
@@ -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();