mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ExtractInterfaceHandler: use app invokeLater to turn refs to super (EA-87345 - assert: PsiDocumentManagerBase.commitAllDocuments)
This commit is contained in:
+1
-3
@@ -42,8 +42,6 @@ import com.intellij.util.IncorrectOperationException;
|
||||
import com.intellij.util.containers.MultiMap;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class ExtractInterfaceHandler implements RefactoringActionHandler, ElementsHandler {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.refactoring.extractInterface.ExtractInterfaceHandler");
|
||||
|
||||
@@ -121,7 +119,7 @@ public class ExtractInterfaceHandler implements RefactoringActionHandler, Elemen
|
||||
final SmartPsiElementPointer<PsiClass> classPointer = SmartPointerManager.getInstance(myProject).createSmartPsiElementPointer(myClass);
|
||||
final SmartPsiElementPointer<PsiClass> interfacePointer = SmartPointerManager.getInstance(myProject).createSmartPsiElementPointer(anInterface);
|
||||
final Runnable turnRefsToSuperRunnable = () -> ExtractClassUtil.askAndTurnRefsToSuper(myProject, classPointer, interfacePointer);
|
||||
SwingUtilities.invokeLater(turnRefsToSuperRunnable);
|
||||
ApplicationManager.getApplication().invokeLater(turnRefsToSuperRunnable);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user