mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 12:35:22 +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);
|
ISystemViewElementAdapter adapter = getViewAdapter(src);
|
||||||
if (adapter != null)
|
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);
|
boolean hasChildren = adapter.hasChildren((IAdaptable)src);
|
||||||
if (!hasChildren)
|
if (!hasChildren)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue