mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
AE fixed
This commit is contained in:
@@ -322,7 +322,8 @@ public class EditorTextField extends NonOpaquePanel implements DocumentListener,
|
||||
}
|
||||
|
||||
void releaseEditor(@NotNull final Editor editor) {
|
||||
if (myProject != null && myIsViewer) {
|
||||
// todo IMHO this should be removed completely
|
||||
if (myProject != null && !myProject.isDisposed() && myIsViewer) {
|
||||
final PsiFile psiFile = PsiDocumentManager.getInstance(myProject).getPsiFile(editor.getDocument());
|
||||
if (psiFile != null) {
|
||||
DaemonCodeAnalyzer.getInstance(myProject).setHighlightingEnabled(psiFile, true);
|
||||
|
||||
Reference in New Issue
Block a user