[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'd like to [show a boolean property] 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.

Daniel Megert Apr 02 2003 12:51:23
> 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).

Thanks for the advice. After looking for something that uses this, I
noticed that o.e.ui.views.tasklist.TaskList implements both
CheckboxCellEditor and ComboBoxCellEditor. (But it's easy to overlook,
since TaskList apparently only exposes this functionality for
user-added items.) So I'll try to figure out how that works.