I am looking for a way to set the ContentProvider and LabelProvider of a JFace
TableViewer
without triggering a refresh.
The background of my Problem is:
- I am dynamically changing the Columns of the TableViewer
- I am locally defining new input data for the table.
- This leads to the problem that the old input data is used to display the new column arrangement -> index can get out of bounds
My (ugly) solution up to now is: before I change the columns, I add content/labelprovider to the viewer and set the input to null. If you know of anything cleaner, please let us know.