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

Bug 581506

Summary: Incorrect groups after loadState()
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/+/199818
https://git.eclipse.org/c/nattable/org.eclipse.nebula.widgets.nattable.git/commit/?id=204f43aeeafc0218f5f2623577dcf3d602b1feb6
https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/199928
https://git.eclipse.org/c/nattable/org.eclipse.nebula.widgets.nattable.git/commit/?id=f71000522a03e826b8ec5bc3705a9d530d180c5d
Whiteboard:

Description Dirk Fauth CLA 2023-02-08 14:30:24 EST
If you reorder columns and then create a column group from that reordered state, save that state and load it at a later time, the column group is shifted.

The reason is that the order in which the layer regions are restored. The column group header layer needs the correct column ordering. If the column groups are restored BEFORE the column order, the result is not the same as on load.

If the order is reversed from bottom right to upper left instead of the current implementation, the issue should be fixed.
Comment 1 Eclipse Genie CLA 2023-02-08 14:32:56 EST
New Gerrit change created: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/199818
Comment 3 Eclipse Genie CLA 2023-02-15 04:15:46 EST
New Gerrit change created: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/199928
Comment 5 Dirk Fauth CLA 2023-03-31 03:46:33 EDT
Fixed with 2.1.0