From eff8e204e2fb25ccb98fca99e69420ab3b65b220 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 23 May 2007 14:35:02 +0000 Subject: [PATCH] [187732] fix hasChildren() so that a non-archive file can't return true for hasChildren --- .../rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java index bd1d8b302a3..143701d5142 100644 --- a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java +++ b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java @@ -859,7 +859,7 @@ public class SystemViewRemoteFileAdapter //Object[] contents = file.getContents(RemoteChildrenContentsType.getInstance()); hasChildren = file.hasContents(RemoteChildrenContentsType.getInstance(), filter); //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; }