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:
parent
4bc6abcb61
commit
ed6644c200
1 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue