From 938716e1cd33a42fe5fa3b220e5d368b6c84b487 Mon Sep 17 00:00:00 2001 From: Marius Heine Date: Wed, 29 Apr 2026 10:26:25 +0200 Subject: [PATCH] update table span utils when applying filter --- .../set/utils/table/TableModelInstanceBodyDataProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/bundles/org.eclipse.set.utils.table/src/org/eclipse/set/utils/table/TableModelInstanceBodyDataProvider.java b/java/bundles/org.eclipse.set.utils.table/src/org/eclipse/set/utils/table/TableModelInstanceBodyDataProvider.java index d6c0e110f4..22b454669f 100644 --- a/java/bundles/org.eclipse.set.utils.table/src/org/eclipse/set/utils/table/TableModelInstanceBodyDataProvider.java +++ b/java/bundles/org.eclipse.set.utils.table/src/org/eclipse/set/utils/table/TableModelInstanceBodyDataProvider.java @@ -39,7 +39,7 @@ public class TableModelInstanceBodyDataProvider private final List instances; private List filteredInstances; private final int propertyCount; - private final TableSpanUtils spanUtils; + private TableSpanUtils spanUtils; private Map filters = new HashMap<>(); /** @@ -52,7 +52,6 @@ public TableModelInstanceBodyDataProvider(final int propertyCount, final List instances) { this.instances = instances; this.propertyCount = propertyCount; - this.spanUtils = new TableSpanUtils(instances); this.refresh(); } @@ -118,6 +117,7 @@ public void refresh() { this.filteredInstances = this.instances.stream() .filter(this::filterMatch) .toList(); + this.spanUtils = new TableSpanUtils(this.filteredInstances); } private boolean filterMatch(final TableRow row) {