Community
Participate
Working Groups
ICellModifier has: boolean canModify(Object, property) Object getValue(Object, property) void modify(Object, property, value) There are two things wrong with this: canModify, getValue, MODIFY? What about setValue? Worse, both canModify and getValue pass a model Object. modify in many instances can pass some lame SWT Item. The javadoc even docs this *bug*. If you know that it could pass Item, you need to call getData() on the item, and pass me that instead. Otherwise it creates a lot of uncertainty in the apis, does this pass this or that.
Tod, is there a reason why TableEditorImpl.saveEditorValue() does not call getData() to get the element when calling ICellModifier.modify()?
Please look at the new API in 3.3, it is more powerful and hopefully less confusing: Table/TreeViewerColumn.setEditingSupport().