[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Table entries for boolean properties?
|
- From: Daniel Megert <daniel.megert@xxxxxxx>
- Date: Wed, 02 Apr 2003 12:51:23 +0200
- Newsgroups: eclipse.tools
- Organization: IBM OTI Labs
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210
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