Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » ButtonCellEditor
ButtonCellEditor [message #539024] Wed, 09 June 2010 07:21 Go to next message
nir dweck is currently offline nir dweck
Messages: 17
Registered: April 2010
Junior Member
High,
I am trying to implement a tableViewer with editingSupport. One of the columns is supposed to be a button. I've created my ButtonCellEditor class. The problem is that I see the button only after I try to edit the cell (by double clicking the cell). I tried to add an image in the labelProvider, but the image is aligned to the left and is not replaced by the button when it shows, rather they are side by side. I have the alignment problem also with other images.
So my question is:
1) Is there any better way to implement a ButtonCellEditor?
2) how can I make the image fill the cell?
3) how do I make the image disappear when the cell is in focus?

Thanks,
Nir
Re: ButtonCellEditor [message #540989 is a reply to message #539024] Thu, 17 June 2010 17:31 Go to previous message
Tim  is currently offline Tim
Messages: 12
Registered: December 2009
Junior Member
Hi,

i am not a DataBinding specialist, but here my answers:

1. I think no.

2. I have try it, but not found a solution.

3. I dont know, but i think is not possible.


Hope this helps.
Previous Topic:Widgets in tables
Next Topic:Databinding: How to add validator for cell editor?
Goto Forum:
  


Current Time: Wed Aug 27 21:11:58 EDT 2014

Powered by FUDForum. Page generated in 0.01890 seconds