[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: Editing Columns in table using tableviewer
|
adithya schrieb:
> Hello,I have created a table and added 4 columns in it and used a
> tableviewer on it.
> Using editing support i added cell editors to the table columns.
> For 1st,3rd and 4th i added TextCellEditors and for 2nd i added
> ComboBoxCellEditor.but a combo box doesn't appear there nor can i edit it.
>
Hard to say what's going wrong with any code. Did you take a look at our
snippet collection? There are examples for all those editors [1]. Try to
start from an example there and modify until you'll see the problem.
It's quite likely that you are using ComboBoxCell-Editor inappropriately
because it assumes that you are giving him the index to select.
> Also if i want to edit any columns any element i have to first select
> the first columns' corresponding row and then procedd to the editing
> column.
Looks like you didn't passed SWT.FULL_SELECTION when creating the
Table-Control.
>
> Like if i want to edit table(2,3) then i have to first select
> table(2,1) and same for others..
>
> Can anyone help?
>
> Thanks,
> Adithya.
>
[1]http://wiki.eclipse.org/JFaceSnippets
--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl JFace-Committer
--------------------------------------------------------------------