Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 581620

Summary: Reapply combobox filter states on different collections
Product: [Technology] NatTable Reporter: Dirk Fauth <dirk.fauth>
Component: CoreAssignee: Dirk Fauth <dirk.fauth>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0.5   
Target Milestone: 2.1.0   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/200316
https://git.eclipse.org/c/nattable/org.eclipse.nebula.widgets.nattable.git/commit/?id=4986d10f43c694be7b7bb342e9cab9a24260a9fa
https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/200354
https://git.eclipse.org/c/nattable/org.eclipse.nebula.widgets.nattable.git/commit/?id=03219eefbd4e46e3f4e6ccdef378fc2936d10913
Whiteboard:

Description Dirk Fauth CLA 2023-03-03 09:39:27 EST
The combobox filter (Excel like filter) is dependent on the content that is currently shown. The state persistence is therefore also dependent on the list that is currently active, as the state contains the values that are currently selected. It does not persist the information what values are currently NOT selected.

This makes it almost impossible to reapply such filter states on collections with different values for the columns.

If the state would persist the values that are currently NOT SELECTED, it would be possible to apply the filter state even on different lists.

For this the FilterRowDataProvider needs to know the FilterRowComboBoxDataProvider, otherwise it is not possible to collect the values that are not selected. As this is a pretty intrusive change that also introduces a new dependency in code, the inverted persistence needs to be enabled explicitly. Otherwise (and also the default) is the persistence of selected values.
Comment 1 Eclipse Genie CLA 2023-03-03 09:41:01 EST
New Gerrit change created: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/200316
Comment 3 Eclipse Genie CLA 2023-03-06 01:51:35 EST
New Gerrit change created: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/200354
Comment 5 Dirk Fauth CLA 2023-03-31 03:44:25 EDT
Fixed with 2.1.0