mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
The case-level Data Filters node (RimDataFilterCollection) was always shown under RimEclipseCase, cluttering the tree when empty. Gate it in RimEclipseCase::defineUiTreeOrdering on a new shouldBeVisibleInTree() check, and refresh the owner case from onItemsChanged/onChildDeleted so the node appears and disappears as the collection crosses the empty boundary. Because a hidden node cannot be right-clicked to create the first filter, add a RimEclipseCase::appendMenuItems override that exposes the filter-creation commands as a Filters submenu on the case node. A shared RicCellFilterFeatureTools::selectedDataFilterCollection() resolves a selected RimEclipseCase to its data filter collection, so the cell, property and combined filter create features target the case-level collection.