CellEditor of TableViewer [message #331307] |
Fri, 29 August 2008 16:51  |
Eclipse User |
|
|
|
Hi,
I would like to have a different cell editor in a cell of a TableViewer,
depending on the value of other cell.
I would needd to have e.g. a ComboBoxCellEditor or a TextEditor or a
BooleanEditor.
I have checked that EditingSupport#getCellEditor() is called only once,
even when editing again the cell.
I could do a proxy class deriving on CellEditor that calls the appropiate
method of a contained ComboBoxCellEditor/TextEditor/BooleanEditor, but it
isn't easy to override so many methods.
Any ideas?
|
|
|
Re: CellEditor of TableViewer [message #331308 is a reply to message #331307] |
Fri, 29 August 2008 17:01   |
Eclipse User |
|
|
|
David Perez schrieb:
> Hi,
>
> I would like to have a different cell editor in a cell of a TableViewer,
> depending on the value of other cell.
>
> I would needd to have e.g. a ComboBoxCellEditor or a TextEditor or a
> BooleanEditor.
>
> I have checked that EditingSupport#getCellEditor() is called only once,
> even when editing again the cell.
It is called everytime to fetch the appropriate CellEditor for the
current object cell else Snippet 34 [1] would not work.
Please recheck your code or did I get you wrong?
Tom
[1] http://wiki.eclipse.org/JFaceSnippets#Snippet034CellEditorPe rRowNewAPI
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Re: CellEditor of TableViewer [message #331309 is a reply to message #331308] |
Fri, 29 August 2008 17:03  |
Eclipse User |
|
|
|
Thanks Tom.
Sorry for the noise, I was caching the cellEditor.....
Tom Schindl wrote:
> It is called everytime to fetch the appropriate CellEditor for the
> current object cell else Snippet 34 [1] would not work.
> Please recheck your code or did I get you wrong?
> Tom
|
|
|
Powered by
FUDForum. Page generated in 0.03194 seconds