mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 10:25: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:
parent
c3698a5f78
commit
3d1a78f8e4
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue