Undoing a table edit incorrectly sets the previous selection

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

Undoing a table edit incorrectly sets the previous selection

Postby Jason Rising » Thu Apr 21, 2022 1:36 pm

When undoing a table model edit in a JideTable, the _savedTableSelection column values are incorrect and jump around selecting table cells that we did not edit. Inspecting the method responsible in JideTable void updateSelectionFromUndoableEdit(UndoableTableModelEvent event) shows that the saved table selections (_savedTableSelection) uses the values directly from the TableModelEdit which uses model index values, not view index values.

There is no other way to correct this other than re-implementing the code ourselves to save previous table selections or using reflection and observing the obfuscated builds to get the methods/variables.
Instead of copying over the TableModelEdit column values, we need them converted to table view index values: convertColumnIndexToView.

Or at least make the method void updateSelectionFromUndoableEdit(UndoableTableModelEvent event) or variable _savedTableSelection protected.
Jason Rising
 
Posts: 11
Joined: Thu Jun 24, 2021 10:39 am

Return to Product Suggestions

Who is online

Users browsing this forum: No registered users and 9 guests

cron