1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

[173518] refreshing filters on remote refresh

This commit is contained in:
David McKnight 2007-06-07 16:36:23 +00:00
parent 4bc6abcb61
commit ed6644c200

View file

@ -2104,6 +2104,18 @@ public class SystemView extends SafeTreeViewer
ISystemViewElementAdapter adapter = getViewAdapter(src);
if (adapter != null)
{
// we need to refresh filters
ISystemRegistry sr = RSECorePlugin.getTheSystemRegistry();
List filterReferences = sr.findFilterReferencesFor(src, adapter.getSubSystem(src), false);
// if filters reference this resource we need them refreshed
for (int f = 0; f < filterReferences.size(); f++)
{
ISystemFilterReference ref = (ISystemFilterReference)filterReferences.get(f);
ref.markStale(true);
smartRefresh(ref, true);
}
boolean hasChildren = adapter.hasChildren((IAdaptable)src);
if (!hasChildren)
{