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).
This commit is contained in:
nik
2017-04-25 18:23:47 +03:00
parent ae91cc463a
commit db5836b41e
@@ -91,6 +91,11 @@ public abstract class ModuleGroupNode extends ProjectViewNode<ModuleGroup> imple
return someChildContainsFile(file, false);
}
@Override
public boolean validate() {
return getValue() != null;
}
@Override
public void update(PresentationData presentation) {
final String[] groupPath = getValue().getGroupPath();