[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Adding element in TableViewer and edit it

Oliver schrieb:
Hi,

I am new with SWT/JFace and have a problem with the TableViewer. I want do display a RGB value (color) per row in the table. First column is red, 2nd green, 3rd blue. When I add a new RGB with colorTable.add(new RGB(0,0,0)) the table is updated correctly. Now when I type a new value in a cell, I receive in the modify()-method always the next upper element of the edited one. Any ideas ?

Please provide a snippet to test. How do you edit the value? Are you using a CellEditor?


For Example of CellEditors, ... please take a look at http://wiki.eclipse.org/JFaceSnippets

Tom



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