[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: SWTException in ColumnViewerEditor.activateCellEditor

Tom Schindl wrote:
But what are you disposing? Hopefully not the CellEditor because you
should create it once and reuse it all over. There's by definition
always only one CellEditor active.

Please modify one of our snippets so I can take a look what you are
doing and how one can solve it. You should by the way not delay the
model update but the disposing if you dispose something => don't dispose
the CellEditor!

Tom

No, I am calling TreeViewer.refresh(), and this disposes the TreeItem.

Anyway, we have two CellEditors in my situation. One (that we are exiting) has just been modified, but the modification is only pushed to the model during the mouse click event that also activates the new CellEditor. It just so happens that the underlying TreeItem is the same for both CellEditors.

I looked at the snippets, but I did not find one with a Tree and ColumnViewerEditors and CellEditors.

Florin