mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't do smart highlighting stuff when live template settings editor is disposed together with the project (IDEA-120651)
This commit is contained in:
+2
-2
@@ -130,9 +130,9 @@ public class LiveTemplateSettingsEditor extends JPanel {
|
||||
return myTemplate;
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
void dispose() {
|
||||
final Project project = myTemplateEditor.getProject();
|
||||
if (project != null) {
|
||||
if (project != null && !project.isDisposed()) {
|
||||
final PsiFile psiFile = PsiDocumentManager.getInstance(project).getPsiFile(myTemplateEditor.getDocument());
|
||||
if (psiFile != null) {
|
||||
DaemonCodeAnalyzer.getInstance(project).setHighlightingEnabled(psiFile, true);
|
||||
|
||||
Reference in New Issue
Block a user