mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user