eclipse-nattable / nattable

High performance SWT data grid
https://eclipse.dev/nattable/
Eclipse Public License 2.0
11 stars 6 forks source link

[Data Changes] Add API to easily check if state is dirty #64

Closed fipro78 closed 1 month ago

fipro78 commented 4 months ago

The DataChangeLayer provides API to check if a row, a column or a cell is dirty. The dirty state with that API determines the dirty state based on content changes. There is no API to check if the table itself is dirty, which actually means, is there any changed data value.

Currently the only way is to check if there are tracked data changes. But for example if you change a value twice, once change it, then bring it back to the original state, the available dirty check API returns false, as there is no data change, but there are two data changes tracked.

We should add an API to simply return the table dirty state, to for example easily implement a dirty state handling in a part view.