From db5836b41ec2f8b53a1f350256df04412e536042 Mon Sep 17 00:00:00 2001 From: nik Date: Tue, 25 Apr 2017 18:23:12 +0300 Subject: [PATCH] project view: highlight module group nodes in project view if there are files with errors under them (IDEA-171965) Implementation of 'validate' from ProjectViewNode invokes 'update' method which won't call 'postprocess' method because 'isValidating' is true, so calling 'validate' on ModuleGroupNode clears ERROR_ATTRIBUTES key set in AbstractTreeNode.postprocess. So we need to override 'validate' method and don't call 'update' from it (IDEA-171966). --- .../intellij/ide/projectView/impl/nodes/ModuleGroupNode.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/ide/projectView/impl/nodes/ModuleGroupNode.java b/platform/lang-impl/src/com/intellij/ide/projectView/impl/nodes/ModuleGroupNode.java index 245e5eedb1ce..9751524445fc 100644 --- a/platform/lang-impl/src/com/intellij/ide/projectView/impl/nodes/ModuleGroupNode.java +++ b/platform/lang-impl/src/com/intellij/ide/projectView/impl/nodes/ModuleGroupNode.java @@ -91,6 +91,11 @@ public abstract class ModuleGroupNode extends ProjectViewNode imple return someChildContainsFile(file, false); } + @Override + public boolean validate() { + return getValue() != null; + } + @Override public void update(PresentationData presentation) { final String[] groupPath = getValue().getGroupPath();