|
Re: I wanna change my ComboBoxCellEditor's items for every row in the table. [message #445791 is a reply to message #445786] |
Thu, 11 November 2004 13:15 |
Eclipse User |
|
|
|
Originally posted by: micasim.gmx.de
On Thu, 11 Nov 2004 19:52:28 +0900, Austine <reffim@yahoo.co.kr> wrote:
> I have several rows and each row has different selectable items.
> I wanna set ComboBoxCellEditor, but I have no idea about how to do.
> If you have an idea, please let me know.
>
> Thanks.
>
>
Hi Austine,
When the user clicks on the cell to open the editor, that row is selected,
i.e., a SelectionChangedEvent is emitted.
So you might add a SelectionChangedListener to your TableViewer that
either changes the active ComboBoxCellEditor or reminds the selection, so
your ComboBoxCellEditor can switch when invoked. Guess you get the idea.
Hope this helps,
Michael
|
|
|
Re: I wanna change my ComboBoxCellEditor's items for every row in the table. [message #445923 is a reply to message #445791] |
Fri, 12 November 2004 04:35 |
Eclipse User |
|
|
|
Originally posted by: reffim.yahoo.co.kr
Thanks for your help, Michael.
I'll try.
"Michael Simons" <micasim@gmx.de> wrote in message
news:opshaxrvxefhg950@news.eclipse.platform.swt...
> On Thu, 11 Nov 2004 19:52:28 +0900, Austine <reffim@yahoo.co.kr> wrote:
>
>> I have several rows and each row has different selectable items.
>> I wanna set ComboBoxCellEditor, but I have no idea about how to do.
>> If you have an idea, please let me know.
>>
>> Thanks.
>>
>>
>
> Hi Austine,
>
> When the user clicks on the cell to open the editor, that row is selected,
> i.e., a SelectionChangedEvent is emitted.
> So you might add a SelectionChangedListener to your TableViewer that
> either changes the active ComboBoxCellEditor or reminds the selection, so
> your ComboBoxCellEditor can switch when invoked. Guess you get the idea.
>
> Hope this helps,
> Michael
|
|
|
Powered by
FUDForum. Page generated in 0.02313 seconds