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?