release the editor in a write-safe context (EA-90138 - assert: PsiDocumentManagerBase.commitAllDocuments)

This commit is contained in:
peter
2016-11-04 16:33:21 +01:00
parent db8926c1b9
commit ecca380b23
@@ -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;
}