Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » CellEditor of TableViewer
CellEditor of TableViewer [message #331307] Fri, 29 August 2008 16:51 Go to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 Go to previous message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
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
Previous Topic:Re: Question about eclipse incremental builder
Next Topic:Basics: rule of thumb for calling dispose()?
Goto Forum:
  


Current Time: Fri Aug 16 10:16:58 GMT 2024

Powered by FUDForum. Page generated in 0.04295 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top