mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 18:35:32 +02:00
[187732] fix hasChildren() so that a non-archive file can't return true for hasChildren
This commit is contained in:
parent
af76788da1
commit
eff8e204e2
1 changed files with 1 additions and 1 deletions
|
@ -859,7 +859,7 @@ public class SystemViewRemoteFileAdapter
|
||||||
//Object[] contents = file.getContents(RemoteChildrenContentsType.getInstance());
|
//Object[] contents = file.getContents(RemoteChildrenContentsType.getInstance());
|
||||||
hasChildren = file.hasContents(RemoteChildrenContentsType.getInstance(), filter);
|
hasChildren = file.hasContents(RemoteChildrenContentsType.getInstance(), filter);
|
||||||
//if (!hasChildren && !file.isStale())
|
//if (!hasChildren && !file.isStale())
|
||||||
if (!hasChildren && file.isStale()) // there are no children, but the resource is stale, therefore it still needs to be queried
|
if (!hasChildren && file.isStale() && (file.isDirectory() || file.isArchive())) // there are no children, but the resource is stale, therefore it still needs to be queried
|
||||||
hasChildren = true;
|
hasChildren = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue