Hi Tom,
Sorry, I forgot to mention that I tried that. When I call editElement
as shown below, then I receive a NullPointerException from
activateCellEditor method in the ColumnViewerEditor class (line:168).
For some reason, cellEditor is set to null after returns from the
updateFocusCell(cell, activationEvent) method.
Let me know if you have any suggestion. Thanks again Tom.
---
myTableViewer.insert(item, -1);
itemList.add(item);
myTableViewer.getTable().setFocus();
myTableViewer.getTable().getParent().layout(true);
myTableViewer.getTable().setSelection(itemList.size() - 1);
IStructuredSelection selection =
(IStructuredSelection)myTableViewer.getSelection();
selectedItem = (itemType)selection.getFirstElement();
myTableViewer.editElement(selectedItem, 0);
----