I have a JFace TreeViewer
with a SWT Tree
underlaying and I am painting my cells for multiple row support for myself. Currently, it looks like this:
I want both the expand icon and the label to be lowered like this:
This is no problem for the label because I am extending from StyledCellLabelProvider
and am overwriting paint()
and measure()
- the problem is that I have no clue if its possible to set the Y Coordinate for the Expand Icon. I'm afraid it isn't.. If so, I would like to paint a custom expand icon for myself, too, but there's another point then: Is it possible to completely vanish the native expand icon? I tried this in both the measure()
and paint()
method, but it didn't worked:
event.detail &= ~SWT.FOREGROUND;
I just added simple paint method on Tree. this should help you to get the direction
you need to draw your expand / collapse images instead filling background