[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Table entries for boolean properties?

Tom Roche wrote:

I have a list of thingies which I need to show. Since the two most
important properties are strings, I've been using a Table with 2
columns. Now I also need to show a boolean property. I'd like to do
this by extending the Table to 3 columns, and using either a checkbox
(preferred) or a read-only combo in the 3rd column to represent the
boolean.

See org.eclipse.jface.viewers.TableViewer.setCellEditors(CellEditor[]) org.eclipse.jface.viewers.CheckboxCellEditor

Maybe you also need to stick in a cell modifier (note sure).

HTH
Dani