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

Bug 580973

Summary: Column groups can not be reordered with GroupBy
Product: [Technology] NatTable Reporter: Dirk Fauth <dirk.fauth>
Component: GlazedLists ExtensionAssignee: Dirk Fauth <dirk.fauth>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0.3   
Target Milestone: 2.0.4   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/196577
https://git.eclipse.org/c/nattable/org.eclipse.nebula.widgets.nattable.git/commit/?id=687b1ddb67f9e7067f43c8ede2088e5302a158a9
Whiteboard:

Description Dirk Fauth CLA 2022-11-02 03:57:17 EDT
In a setup that combines the ColumnGroupHeaderLayer with the GroupByHeaderLayer, the column groups can't be reordered. This can be seen in the _815_SortableGroupByFilterPerformanceColumnGroupAndFreezeExample.

The reason is the ui binding ordering for the drag modes. As the column group header and the groupby header are part of the column header region, the more specific matchers need to be in the registry first. Otherwise the less specific matchers get active first which skips the more specific ones. As the GroupByHeaderConfiguration adds the DragModes via registerFirstXxx, the more specific handlers registered by the DefaultColumnGroupHeaderLayerConfiguration are kind of overriden. To fix this the GroupByHeaderConfiguration now also registers the dragmode for the column group reordering.

Note: This only works for the new performance ColumnGroupHeaderLayer. The old implementation is deprecated.
Comment 1 Eclipse Genie CLA 2022-11-02 03:58:12 EDT
New Gerrit change created: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/196577
Comment 3 Dirk Fauth CLA 2022-12-14 14:57:41 EST
Released with 2.0.4