1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-26 18:35:32 +02:00

[148978] fix for empty dir problem - need to make the queried folder not stale after the query

This commit is contained in:
David McKnight 2007-01-23 19:39:04 +00:00
parent c3698a5f78
commit 3d1a78f8e4

View file

@ -31,6 +31,7 @@ import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IAdaptable; import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.SubProgressMonitor; import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.action.MenuManager;
@ -722,7 +723,7 @@ public class SystemViewRemoteFileAdapter
} }
else else
{ {
children = ss.resolveFilterString(file, filter); children = ss.resolveFilterString(new NullProgressMonitor(), file, filter);
} }
if ((children == null) || (children.length == 0)) if ((children == null) || (children.length == 0))
{ {
@ -746,6 +747,7 @@ public class SystemViewRemoteFileAdapter
SystemBasePlugin.logError("Exception resolving file filter strings", exc); //$NON-NLS-1$ SystemBasePlugin.logError("Exception resolving file filter strings", exc); //$NON-NLS-1$
} // message already issued } // message already issued
} }
file.markStale(false);
return children; return children;
} }
/** /**