Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Subclass of ITableLableProvider needed


Hi,

since a table can have checkboxes in its first columns, I would like to suggest a subclass of ITableLableProvider called ICheckboxTableLableProvider which defines a method "public boolean getColumnCheck(Object element, int columnIndex)" or likewise.
In order to make this work there need also be a modification in class CheckboxTableViewer where an alternate method
doUpdateItem() sets these values (true or false) in the checkbox column.
And last but not least, to make these settings last until the table is displayed, maybe you could give another thought to the fact that the method TableViewer.inputChanged leads to preserving all old selections in CheckboxTableViewer instead of refreshing them with the current values. So maybe this method should also be overwritten by the CheckboxTableViewe.

Looking forward to your response.
:-)  Marion





Back to the top