mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix tests
This commit is contained in:
+10
-3
@@ -21,6 +21,7 @@ import com.intellij.lang.LanguageRefactoringSupport;
|
||||
import com.intellij.lang.refactoring.RefactoringSupportProvider;
|
||||
import com.intellij.openapi.actionSystem.DataContext;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.command.CommandProcessor;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
@@ -365,12 +366,18 @@ public abstract class GrIntroduceHandlerBase<Settings extends GrIntroduceSetting
|
||||
else {
|
||||
final Settings settings = showDialog(context);
|
||||
if (settings == null) return false;
|
||||
ApplicationManager.getApplication().runWriteAction(new Runnable() {
|
||||
|
||||
CommandProcessor.getInstance().executeCommand(context.getProject(), new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
runRefactoring(context, settings);
|
||||
ApplicationManager.getApplication().runWriteAction(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
runRefactoring(context, settings);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}, getRefactoringName(), null);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user