[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: ColumnViewer - problem with handleMouseDown on Windows

Hi AJ,

Could you by chance provide a snippet to test this (when using editElement). It looks like a bug for me which we should address in 3.4 if possible. If you could also provide a snippet with your notify listener approach I'll take a look at it too.

Tom

AJ schrieb:
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);
----




--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl                                          JFace-Committer
--------------------------------------------------------------------