mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
release the editor in a write-safe context (EA-90138 - assert: PsiDocumentManagerBase.commitAllDocuments)
This commit is contained in:
@@ -404,7 +404,7 @@ public class EditorTextField extends NonOpaquePanel implements DocumentListener,
|
||||
// and only then execute another removal from the hierarchy. Otherwise
|
||||
// swing goes nuts because of nested removals and indices get corrupted
|
||||
EditorEx editor = myEditor;
|
||||
SwingUtilities.invokeLater(() -> releaseEditor(editor));
|
||||
ApplicationManager.getApplication().invokeLater(() -> releaseEditor(editor));
|
||||
myEditor = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user